File tree 3 files changed +6
-1
lines changed
3 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -357,7 +357,7 @@ struct PackagingPlanner {
357
357
/// The directory for intermediate files
358
358
let intermediatesDir : BuildPath
359
359
/// The filename of the .wasm file
360
- let wasmFilename = " main.wasm "
360
+ let wasmFilename : String
361
361
/// The path to the .wasm product artifact
362
362
let wasmProductArtifact : BuildPath
363
363
/// The build configuration
@@ -374,6 +374,7 @@ struct PackagingPlanner {
374
374
selfPackageDir: BuildPath ,
375
375
outputDir: BuildPath ,
376
376
wasmProductArtifact: BuildPath ,
377
+ wasmFilename: String ,
377
378
configuration: String ,
378
379
triple: String ,
379
380
selfPath: BuildPath = BuildPath ( absolute: #filePath) ,
@@ -384,6 +385,7 @@ struct PackagingPlanner {
384
385
self . selfPackageDir = selfPackageDir
385
386
self . outputDir = outputDir
386
387
self . intermediatesDir = intermediatesDir
388
+ self . wasmFilename = wasmFilename
387
389
self . selfPath = selfPath
388
390
self . wasmProductArtifact = wasmProductArtifact
389
391
self . configuration = configuration
Original file line number Diff line number Diff line change @@ -498,6 +498,7 @@ extension PackagingPlanner {
498
498
selfPackageDir: BuildPath ( absolute: selfPackage. directoryURL. path) ,
499
499
outputDir: BuildPath ( absolute: outputDir. path) ,
500
500
wasmProductArtifact: BuildPath ( absolute: wasmProductArtifact. path) ,
501
+ wasmFilename: wasmProductArtifact. lastPathComponent,
501
502
configuration: configuration,
502
503
triple: triple,
503
504
system: system
Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ import Testing
53
53
selfPackageDir: BuildPath ( prefix: " SELF_PACKAGE " ) ,
54
54
outputDir: BuildPath ( prefix: " OUTPUT " ) ,
55
55
wasmProductArtifact: BuildPath ( prefix: " WASM_PRODUCT_ARTIFACT " ) ,
56
+ wasmFilename: " main.wasm " ,
56
57
configuration: configuration,
57
58
triple: " wasm32-unknown-wasi " ,
58
59
selfPath: BuildPath ( prefix: " PLANNER_SOURCE_PATH " ) ,
@@ -81,6 +82,7 @@ import Testing
81
82
selfPackageDir: BuildPath ( prefix: " SELF_PACKAGE " ) ,
82
83
outputDir: BuildPath ( prefix: " OUTPUT " ) ,
83
84
wasmProductArtifact: BuildPath ( prefix: " WASM_PRODUCT_ARTIFACT " ) ,
85
+ wasmFilename: " main.wasm " ,
84
86
configuration: " debug " ,
85
87
triple: " wasm32-unknown-wasi " ,
86
88
selfPath: BuildPath ( prefix: " PLANNER_SOURCE_PATH " ) ,
You can’t perform that action at this time.
0 commit comments