mirror of
https://github.com/ziglang/zig.git
synced 2025-12-30 10:03:21 +00:00
restore cmake to be capable of figuring out the zig version restore config.h and config.zig. config.h is used to detect whether we should propagate cmake configuration information to build.zig; however it can be overridden with -Dstatic-llvm. fix not passing -DZIG_LINK_MODE with zig build. when using the cmake build path, build.zig no longer tries to call llvm-config. Instead it relies 100% on the LLVM_LIBRARIES cmake variable. build.zig logic reworked and simplified.
14 lines
484 B
Zig
14 lines
484 B
Zig
pub const have_llvm = true;
|
|
pub const version: [:0]const u8 = "@ZIG_VERSION@";
|
|
pub const semver: @import("std").SemanticVersion = .{
|
|
.major = @ZIG_VERSION_MAJOR@,
|
|
.minor = @ZIG_VERSION_MINOR@,
|
|
.patch = @ZIG_VERSION_PATCH@,
|
|
.build = "@ZIG_GIT_REV@",
|
|
};
|
|
pub const log_scopes: []const []const u8 = &[_][]const u8{};
|
|
pub const zir_dumps: []const []const u8 = &[_][]const u8{};
|
|
pub const enable_tracy = false;
|
|
pub const is_stage1 = true;
|
|
pub const skip_non_native = false;
|