We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
--release
1 parent b617d50 commit 80576c7Copy full SHA for 80576c7
crates/c-api/CMakeLists.txt
@@ -5,7 +5,10 @@ set(WASMTIME_USER_CARGO_BUILD_OPTIONS "" CACHE STRING "Additional cargo flags (s
5
option(BUILD_SHARED_LIBS "Build using shared libraries" OFF)
6
option(WASMTIME_ALWAYS_BUILD "If cmake should always invoke cargo to build wasmtime" ON)
7
8
-if(CMAKE_BUILD_TYPE STREQUAL "Release")
+if(CMAKE_BUILD_TYPE STREQUAL "Release" OR
9
+ CMAKE_BUILD_TYPE STREQUAL "MinSizeRel" OR
10
+ CMAKE_BUILD_TYPE STREQUAL "RelWithDebInfo"
11
+)
12
set(WASMTIME_BUILD_TYPE_FLAG "--release")
13
set(WASMTIME_BUILD_TYPE "release")
14
else()
0 commit comments