mirror of
https://github.com/ziglang/zig.git
synced 2026-02-15 22:09:49 +00:00
CMake: add the bracket-depth workaround for zig1
This commit is contained in:
parent
1e638cb206
commit
54b960aa4d
@ -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()
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user