From 34186982202bad777471e7c7ab996f0bf9a9ea47 Mon Sep 17 00:00:00 2001 From: Bob Farrell Date: Sun, 2 Mar 2025 14:05:01 +0000 Subject: [PATCH] Use LLVM everywhere except Linux Zig Compiler seems not ready for Windows yet (builds failing), restricting to Linux for now, we can add other OSes as the compiler matures. --- build.zig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/build.zig b/build.zig index 9e18463..f54d3fe 100644 --- a/build.zig +++ b/build.zig @@ -7,7 +7,7 @@ const zmpl_build = @import("zmpl"); const Environment = enum { development, testing, production }; const builtin = @import("builtin"); -const use_llvm_default = builtin.os.tag == .macos; +const use_llvm_default = builtin.os.tag != .linux; pub fn build(b: *std.Build) !void { const target = b.standardTargetOptions(.{}); @@ -238,7 +238,6 @@ pub fn jetzigInit(b: *std.Build, exe: *std.Build.Step.Compile, options: JetzigIn exe_routes_file.root_module.addImport("zmpl", zmpl_module); const run_routes_file_cmd = b.addRunArtifact(exe_routes_file); - run_routes_file_cmd.has_side_effects = true; const routes_file_path = run_routes_file_cmd.addOutputFileArg("routes.zig"); run_routes_file_cmd.addArgs(&.{ root_path,