From b21e3fd2fa9c0e07bd7b4f92ede540f7747840cc Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Thu, 25 Jul 2024 11:39:48 +0900 Subject: [PATCH] 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 --- wamr-compiler/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wamr-compiler/main.c b/wamr-compiler/main.c index 7f1c34f66..44c8e6bb5 100644 --- a/wamr-compiler/main.c +++ b/wamr-compiler/main.c @@ -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; }