CMake: add the bracket-depth workaround for zig1

This commit is contained in:
Andrew Kelley 2022-12-04 17:15:53 -07:00
parent 1e638cb206
commit 54b960aa4d

View File

@ -717,6 +717,9 @@ else()
set(ZIG_WASM2C_COMPILE_FLAGS "-std=c99 -O2")
set(ZIG1_COMPILE_FLAGS "-std=c99 -Os")
set(ZIG2_COMPILE_FLAGS "-std=c99 -O0")
if(CMAKE_C_COMPILER_ID MATCHES "Clang")
set(ZIG1_COMPILE_FLAGS "${ZIG1_COMPILE_FLAGS} -fbracket-depth=512")
endif()
set(ZIG2_LINK_FLAGS "-Wl,-z,stack-size=0x10000000")
endif()