aboutsummaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <jarred@jarredsumner.com> 2022-07-22 00:58:45 -0700
committerGravatar GitHub <noreply@github.com> 2022-07-22 00:58:45 -0700
commit0d4b4c494243cf73bf704971dcc0711c5882a8aa (patch)
tree997f8cd101803ff023e277a2330ad7bf8472cb59 /build.zig
parentc772256e93931f032751474e5ddeccbb92cee847 (diff)
downloadbun-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.zig7
1 files changed, 6 insertions, 1 deletions
diff --git a/build.zig b/build.zig
index a6a3bc96d..bffa8eefe 100644
--- a/build.zig
+++ b/build.zig
@@ -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(