aboutsummaryrefslogtreecommitdiff
path: root/lib/init/build.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2025-02-25 20:25:17 -0800
committerAndrew Kelley <andrew@ziglang.org>2025-02-26 11:42:04 -0800
commit67904e925d2b33c48dda3d4ddaf158328964dc2e (patch)
tree35c505758915b7a2473dec2b7165a4fc4c2d5b38 /lib/init/build.zig
parentea516f0e81d055e0d7504eff36dfde694831bec1 (diff)
downloadzig-67904e925d2b33c48dda3d4ddaf158328964dc2e.tar.gz
zig-67904e925d2b33c48dda3d4ddaf158328964dc2e.zip
zig init: adjust template lang to allow zig fmt passthrough
Diffstat (limited to 'lib/init/build.zig')
-rw-r--r--lib/init/build.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/init/build.zig b/lib/init/build.zig
index ec25698c68..4db31713e4 100644
--- a/lib/init/build.zig
+++ b/lib/init/build.zig
@@ -42,14 +42,14 @@ pub fn build(b: *std.Build) void {
// Modules can depend on one another using the `std.Build.Module.addImport` function.
// This is what allows Zig source code to use `@import("foo")` where 'foo' is not a
// file path. In this case, we set up `exe_mod` to import `lib_mod`.
- exe_mod.addImport("$n_lib", lib_mod);
+ exe_mod.addImport(".NAME_lib", lib_mod);
// Now, we will create a static library based on the module we created above.
// This creates a `std.Build.Step.Compile`, which is the build step responsible
// for actually invoking the compiler.
const lib = b.addLibrary(.{
.linkage = .static,
- .name = "$n",
+ .name = ".NAME",
.root_module = lib_mod,
});
@@ -61,7 +61,7 @@ pub fn build(b: *std.Build) void {
// This creates another `std.Build.Step.Compile`, but this one builds an executable
// rather than a static library.
const exe = b.addExecutable(.{
- .name = "$n",
+ .name = ".NAME",
.root_module = exe_mod,
});