Skip to content

Commit b21e3fd

Browse files
authored
wamr-compiler: Avoid size-level tweak if target is specified (#3659)
If target is specified, assume a cross-build. Partly fixes: #3356
1 parent b300797 commit b21e3fd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

wamr-compiler/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@ main(int argc, char *argv[])
599599
}
600600
#if defined(_WIN32) || defined(_WIN32_) || defined(__APPLE__) \
601601
|| defined(__MACH__)
602-
if (!option.target_abi) {
602+
if (!option.target_arch && !option.target_abi) {
603603
LOG_VERBOSE("Set size level to 1 for Windows or MacOS AOT file");
604604
option.size_level = 1;
605605
}

0 commit comments

Comments
 (0)