diff options
| author | Cody Tapscott <topolarity@tapscott.me> | 2022-10-31 13:12:52 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-11-10 19:34:56 -0500 |
| commit | b605cb2742092530b7edf4c9d95c0ae28051ce95 (patch) | |
| tree | 36c5f4ea4fb635f449cfde34ef2f218a2ba52f6c /src | |
| parent | 892fb0fc8830007542381fe845e618dc47493622 (diff) | |
| download | zig-b605cb2742092530b7edf4c9d95c0ae28051ce95.tar.gz zig-b605cb2742092530b7edf4c9d95c0ae28051ce95.zip | |
cmake: Mark <root>/.git/HEAD as a configure dependency
This ensures that the Zig version will be re-computed when jumping
through the source tree, which is especially important if bisecting
across AstGen- or other changes that must not use the old cache.
Diffstat (limited to 'src')
| -rw-r--r-- | src/config.zig.in | 2 | ||||
| -rw-r--r-- | src/stage1/config.h.in | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/config.zig.in b/src/config.zig.in index 0d55393aa1..2a0d45c010 100644 --- a/src/config.zig.in +++ b/src/config.zig.in @@ -2,7 +2,7 @@ pub const have_llvm = true; pub const llvm_has_m68k = false; pub const llvm_has_csky = false; pub const llvm_has_arc = false; -pub const version: [:0]const u8 = "@ZIG_VERSION@"; +pub const version: [:0]const u8 = "@RESOLVED_ZIG_VERSION@"; pub const semver = @import("std").SemanticVersion.parse(version) catch unreachable; pub const enable_logging: bool = @ZIG_ENABLE_LOGGING_BOOL@; pub const enable_link_snapshots: bool = false; diff --git a/src/stage1/config.h.in b/src/stage1/config.h.in index 2d4fff6df2..22311373f6 100644 --- a/src/stage1/config.h.in +++ b/src/stage1/config.h.in @@ -12,7 +12,7 @@ #define ZIG_VERSION_MAJOR @ZIG_VERSION_MAJOR@ #define ZIG_VERSION_MINOR @ZIG_VERSION_MINOR@ #define ZIG_VERSION_PATCH @ZIG_VERSION_PATCH@ -#define ZIG_VERSION_STRING "@ZIG_VERSION@" +#define ZIG_VERSION_STRING "@RESOLVED_ZIG_VERSION@" // Used by build.zig for communicating build information to self hosted build. #define ZIG_CMAKE_BINARY_DIR "@CMAKE_BINARY_DIR@" |
