| author | |
| committer | |
| log | aaf95ce849e7ae22a838aad5eac3dd5754a925cd |
| tree | 02b3503aba51e044ab46d35b9318fb7f775867a6 |
| parent | e73170f9725c530befc688dd40053022072f5058 |
Before it was checking if the compiler was AppleClang, however, this did
not handle the case when using a compiled-from-source Clang on a macOS
computer, in which case the linker is still Apple ld64, and it is in
fact the linker that needs to have the different flag to communicate
stack size.1 files changed, 1 insertions(+), 1 deletions(-)
CMakeLists.txt+1-1| ... | ... | @@ -731,7 +731,7 @@ else() |
| 731 | 731 | set(ZIG_WASM2C_COMPILE_FLAGS "-std=c99 -O2") |
| 732 | 732 | set(ZIG1_COMPILE_FLAGS "-std=c99 -Os") |
| 733 | 733 | set(ZIG2_COMPILE_FLAGS "-std=c99 -O0") |
| 734 | if(CMAKE_C_COMPILER_ID STREQUAL "AppleClang") | |
| 734 | if(APPLE) | |
| 735 | 735 | set(ZIG2_LINK_FLAGS "-Wl,-stack_size,0x10000000") |
| 736 | 736 | else() |
| 737 | 737 | set(ZIG2_LINK_FLAGS "-Wl,-z,stack-size=0x10000000") |