wasm2c: remove unnecessary brackets to reduce max bracket depth

This avoids the need to pass `-fbracket-depth=512` to clang.
This commit is contained in:
Jacob Young
2022-12-05 03:44:35 -05:00
committed by Andrew Kelley
parent fdb98c5ce1
commit 9f4ef4de23
3 changed files with 29 additions and 14 deletions

View File

@@ -731,9 +731,6 @@ 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()
if(CMAKE_C_COMPILER_ID STREQUAL "AppleClang")
set(ZIG2_LINK_FLAGS "-Wl,-stack_size,0x10000000")
else()