File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -572,7 +572,10 @@ impl WorldGenerator for MoonBit {
572
572
// Export project files
573
573
if !self . opts . ignore_stub && !self . opts . ignore_module_file {
574
574
let mut body = Source :: default ( ) ;
575
- uwriteln ! ( & mut body, "{{ \" name\" : \" {project_name}\" }}" ) ;
575
+ uwriteln ! (
576
+ & mut body,
577
+ "{{ \" name\" : \" {project_name}\" , \" preferred-target\" : \" wasm\" }}"
578
+ ) ;
576
579
files. push ( & format ! ( "moon.mod.json" ) , body. as_bytes ( ) ) ;
577
580
}
578
581
Original file line number Diff line number Diff line change @@ -49,8 +49,6 @@ impl LanguageMethods for MoonBit {
49
49
let mut cmd = Command :: new ( "moon" ) ;
50
50
cmd. arg ( "build" )
51
51
. arg ( "--no-strip" ) // for debugging
52
- . arg ( "--target" )
53
- . arg ( "wasm" )
54
52
. arg ( "-C" )
55
53
. arg ( compile. bindings_dir ) ;
56
54
runner. run_command ( & mut cmd) ?;
@@ -91,8 +89,6 @@ impl LanguageMethods for MoonBit {
91
89
fn verify ( & self , runner : & crate :: Runner < ' _ > , verify : & crate :: Verify ) -> anyhow:: Result < ( ) > {
92
90
let mut cmd = Command :: new ( "moon" ) ;
93
91
cmd. arg ( "check" )
94
- . arg ( "--target" )
95
- . arg ( "wasm" )
96
92
. arg ( "--warn-list" )
97
93
. arg ( "-28" )
98
94
. arg ( "--deny-warn" )
@@ -102,8 +98,6 @@ impl LanguageMethods for MoonBit {
102
98
runner. run_command ( & mut cmd) ?;
103
99
let mut cmd = Command :: new ( "moon" ) ;
104
100
cmd. arg ( "build" )
105
- . arg ( "--target" )
106
- . arg ( "wasm" )
107
101
. arg ( "--source-dir" )
108
102
. arg ( verify. bindings_dir ) ;
109
103
You can’t perform that action at this time.
0 commit comments