From d9a25b5f626f321b7f32ea660143afeef0c826de Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Mon, 22 Jul 2024 11:41:54 -0700 Subject: [PATCH] Specify MinSizeRel in `build.sh` Looks like MSVC defaults to "Debug" instead of an empty string to so the default logic which works for other compilers isn't kicking in here. --- ci/build.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/ci/build.sh b/ci/build.sh index 6dc187c4a..09c92a35f 100755 --- a/ci/build.sh +++ b/ci/build.sh @@ -18,6 +18,7 @@ fi cmake -G Ninja -B $build_dir/toolchain -S . \ -DWASI_SDK_BUILD_TOOLCHAIN=ON \ + -DCMAKE_BUILD_TYPE=MinSizeRel \ "-DCMAKE_INSTALL_PREFIX=$build_dir/install" \ $WASI_SDK_CI_TOOLCHAIN_CMAKE_ARGS \ "-DLLVM_CMAKE_FLAGS=$WASI_SDK_CI_TOOLCHAIN_LLVM_CMAKE_ARGS"