diff options
author | 2022-07-22 00:58:45 -0700 | |
---|---|---|
committer | 2022-07-22 00:58:45 -0700 | |
commit | 0d4b4c494243cf73bf704971dcc0711c5882a8aa (patch) | |
tree | 997f8cd101803ff023e277a2330ad7bf8472cb59 /build.zig | |
parent | c772256e93931f032751474e5ddeccbb92cee847 (diff) | |
download | bun-0d4b4c494243cf73bf704971dcc0711c5882a8aa.tar.gz bun-0d4b4c494243cf73bf704971dcc0711c5882a8aa.tar.zst bun-0d4b4c494243cf73bf704971dcc0711c5882a8aa.zip |
Canary builds (Linux) (#824)canary
* wip
* WIP:
* WIP
* WIP
* WIP
* WIP
* WIP
* Update WebKit
* WIP
* WIP
* WIP
* WIP
* WIP
* WIP
* WIP
* WIP
* Update WebKit
* WIP
* WIP
* WIP
* WIP
* Workaround missing system calls
* WIP
* WIP
* WIP
* WIP
* WIP
* WIP
* WIP
* Fix baseline detection
* WIP
* strip debug symbol
* Auto-generate canary build
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
Diffstat (limited to 'build.zig')
-rw-r--r-- | build.zig | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -239,7 +239,6 @@ pub fn build(b: *std.build.Builder) !void { } else if (target.isLinux()) { target.setGnuLibCVersion(2, 27, 0); } - std.mem.copy( u8, &triplet_buf, @@ -311,6 +310,12 @@ pub fn build(b: *std.build.Builder) !void { "bindgen", false, ); + opts.addOption( + bool, + "baseline", + arch.isX86() and (obj.target.cpu_model == .baseline or + !std.Target.x86.featureSetHas(obj.target.getCpuFeatures(), .avx2)), + ); obj.addOptions("build_options", opts); try addInternalPackages( |