From 86e4e2e35f9778f6b6d195e161ce2d794042069f Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Fri, 9 Feb 2024 17:41:03 -0700 Subject: [PATCH] make build options snake_case; helps hexops/mach#1157 Signed-off-by: Stephen Gutekanst --- build.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.zig b/build.zig index f95eb93..4201b47 100644 --- a/build.zig +++ b/build.zig @@ -15,8 +15,8 @@ const prefix = "libs/DirectXShaderCompiler"; pub fn build(b: *Build) !void { const optimize = b.standardOptimizeOption(.{}); const target = b.standardTargetOptions(.{}); - const from_source = b.option(bool, "from-source", "Build dxcompiler from source (large C++ codebase)") orelse false; - const debug_symbols = b.option(bool, "debug-symbols", "Whether to produce detailed debug symbols (g0) or not. These increase binary size considerably.") orelse false; + const from_source = b.option(bool, "from_source", "Build dxcompiler from source (large C++ codebase)") orelse false; + const debug_symbols = b.option(bool, "debug_symbols", "Whether to produce detailed debug symbols (g0) or not. These increase binary size considerably.") orelse false; const machdxcompiler: struct { lib: *std.Build.Step.Compile, lib_path: ?[]const u8 } = blk: { if (!from_source) {