File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -127,6 +127,8 @@ def main():
127
127
help = 'build relocatable objects for suitable for dynamic linking' )
128
128
parser .add_argument ('--force' , action = 'store_true' ,
129
129
help = 'force rebuild of target (by removing it first)' )
130
+ parser .add_argument ('--wasm64' , action = 'store_true' ,
131
+ help = 'use wasm64 architecture' )
130
132
parser .add_argument ('operation' , help = 'currently only "build" is supported' )
131
133
parser .add_argument ('targets' , nargs = '+' , help = 'see below' )
132
134
args = parser .parse_args ()
@@ -147,6 +149,9 @@ def main():
147
149
if args .pic :
148
150
settings .RELOCATABLE = 1
149
151
152
+ if args .wasm64 :
153
+ settings .MEMORY64 = 2
154
+
150
155
if args .force :
151
156
force = True
152
157
Original file line number Diff line number Diff line change @@ -127,6 +127,9 @@ def update_settings_glue(metadata, DEBUG):
127
127
128
128
# start with the MVP features, and add any detected features.
129
129
settings .BINARYEN_FEATURES = ['--mvp-features' ] + metadata ['features' ]
130
+ # ensure '--enable-memory64' is set exactly once:
131
+ if settings .MEMORY64 and '--enable-memory64' not in settings .BINARYEN_FEATURES :
132
+ settings .BINARYEN_FEATURES += ['--enable-memory64' ]
130
133
if settings .USE_PTHREADS :
131
134
assert '--enable-threads' in settings .BINARYEN_FEATURES
132
135
if settings .MEMORY64 :
You can’t perform that action at this time.
0 commit comments