diff options
author | 2023-02-24 14:20:05 -0600 | |
---|---|---|
committer | 2023-02-24 12:20:05 -0800 | |
commit | dc8e8450491f2485cc7c3b42fd82aaaf0f978260 (patch) | |
tree | 2ffa1845d4f7f2d2f385282f579863cb67f55355 | |
parent | 08308e2287521f2a321cc008167886f5d89a35cd (diff) | |
download | bun-dc8e8450491f2485cc7c3b42fd82aaaf0f978260.tar.gz bun-dc8e8450491f2485cc7c3b42fd82aaaf0f978260.tar.zst bun-dc8e8450491f2485cc7c3b42fd82aaaf0f978260.zip |
fix(zig-build): disable stack probing on x86_64 so no `compiler_rt` required (#2159)
-rw-r--r-- | build.zig | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -600,6 +600,9 @@ pub fn configureObjectStep(b: *std.build.Builder, obj: *CompileStep, comptime Ta if (target.getOsTag() != .freestanding) obj.linkLibC(); if (target.getOsTag() != .freestanding) obj.bundle_compiler_rt = false; + // Disable staack probing on x86 so we don't need to include compiler_rt + if (target.getCpuArch().isX86()) obj.disable_stack_probing = true; + if (target.getOsTag() == .linux) { // obj.want_lto = tar; obj.link_emit_relocs = true; |