mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-02-06 15:05:19 +00:00
wamr-compiler: Avoid size-level tweak if target is specified (#3659)
If target is specified, assume a cross-build. Partly fixes: https://github.com/bytecodealliance/wasm-micro-runtime/issues/3356
This commit is contained in:
parent
b300797b71
commit
b21e3fd2fa
|
@ -599,7 +599,7 @@ main(int argc, char *argv[])
|
|||
}
|
||||
#if defined(_WIN32) || defined(_WIN32_) || defined(__APPLE__) \
|
||||
|| defined(__MACH__)
|
||||
if (!option.target_abi) {
|
||||
if (!option.target_arch && !option.target_abi) {
|
||||
LOG_VERBOSE("Set size level to 1 for Windows or MacOS AOT file");
|
||||
option.size_level = 1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user