| author | |
| committer | |
| log | 957a5ae56038517316f66777d8dc5f090f15c214 |
| tree | a68448e20d655eeff811737c99f0688716b64275 |
| parent | c3e88a21fbe9c9e1d163bb7bef10cc5072aeb19e |
| signature |
We build zig2.c and compiler_rt.c with -O0 but then proceed to link with -O3.
So zig2.o and compiler_rt.o will have references to ubsan-rt symbols, but the
-O3 causes the compiler to not link ubsan-rt. We don't actually need the safety
here, so just explicitly disable ubsan.1 files changed, 1 insertions(+), 1 deletions(-)
CMakeLists.txt+1-1| ... | ... | @@ -809,7 +809,7 @@ if(MSVC) |
| 809 | 809 | else() |
| 810 | 810 | set(ZIG_WASM2C_COMPILE_FLAGS "-std=c99 -O2") |
| 811 | 811 | set(ZIG1_COMPILE_FLAGS "-std=c99 -Os") |
| 812 | set(ZIG2_COMPILE_FLAGS "-std=c99 -O0 -fno-stack-protector") | |
| 812 | set(ZIG2_COMPILE_FLAGS "-std=c99 -O0 -fno-sanitize=undefined -fno-stack-protector") | |
| 813 | 813 | if(APPLE) |
| 814 | 814 | set(ZIG2_LINK_FLAGS "-Wl,-stack_size,0x10000000") |
| 815 | 815 | elseif(MINGW) |