mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-05-27 20:17:24 +00:00
runtest.py: Normallize option handling for XIP mode (#3722)
This commit is contained in:
parent
63df2cf02d
commit
a44c487632
|
@ -62,6 +62,12 @@ aot_target_options_map = {
|
||||||
"xtensa": ["--target=xtensa"],
|
"xtensa": ["--target=xtensa"],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# AOT compilation options mapping for XIP mode
|
||||||
|
aot_target_options_map_xip = {
|
||||||
|
# avoid l32r relocations for xtensa
|
||||||
|
"xtensa": ["--mllvm=-mtext-section-literals"]
|
||||||
|
}
|
||||||
|
|
||||||
def debug(data):
|
def debug(data):
|
||||||
if debug_file:
|
if debug_file:
|
||||||
debug_file.write(data)
|
debug_file.write(data)
|
||||||
|
@ -1122,10 +1128,8 @@ def compile_wasm_to_aot(wasm_tempfile, aot_tempfile, runner, opts, r, output = '
|
||||||
|
|
||||||
if opts.xip:
|
if opts.xip:
|
||||||
cmd.append("--xip")
|
cmd.append("--xip")
|
||||||
|
if test_target in aot_target_options_map_xip:
|
||||||
# avoid l32r relocations for xtensa
|
cmd += aot_target_options_map_xip[test_target]
|
||||||
if opts.target == "xtensa":
|
|
||||||
cmd.append("--mllvm=-mtext-section-literals")
|
|
||||||
|
|
||||||
if opts.multi_thread:
|
if opts.multi_thread:
|
||||||
cmd.append("--enable-multi-thread")
|
cmd.append("--enable-multi-thread")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user