aboutsummaryrefslogtreecommitdiff
path: root/src/stage1/codegen.cpp
diff options
context:
space:
mode:
authorJakub Konka <kubkon@jakubkonka.com>2021-11-26 01:08:16 +0100
committerGitHub <noreply@github.com>2021-11-26 01:08:16 +0100
commit2006add8496c47804ee3b6c562f420871cb4ea0a (patch)
tree35a99f3a77d353a725599812a84b82d6449d796f /src/stage1/codegen.cpp
parent9177f5c17b8dfe55b2aa0be1588bd1a4409386d1 (diff)
parenta0414012568028cd26a118c47be58940e10e2d95 (diff)
downloadzig-2006add8496c47804ee3b6c562f420871cb4ea0a.tar.gz
zig-2006add8496c47804ee3b6c562f420871cb4ea0a.zip
Merge pull request #10215 from ziglang/macos-versions
Ship versioned libc headers on macOS
Diffstat (limited to 'src/stage1/codegen.cpp')
-rw-r--r--src/stage1/codegen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stage1/codegen.cpp b/src/stage1/codegen.cpp
index 76e9b3edc2..163813194b 100644
--- a/src/stage1/codegen.cpp
+++ b/src/stage1/codegen.cpp
@@ -9305,7 +9305,7 @@ Buf *codegen_generate_builtin_source(CodeGen *g) {
buf_appendf(contents, "pub const abi = std.Target.Abi.%s;\n", cur_abi);
buf_appendf(contents, "pub const cpu = std.Target.Cpu.baseline(.%s);\n", cur_arch);
buf_appendf(contents, "pub const stage2_arch: std.Target.Cpu.Arch = .%s;\n", cur_arch);
- buf_appendf(contents, "pub const os = std.Target.Os.Tag.defaultVersionRange(.%s);\n", cur_os);
+ buf_appendf(contents, "pub const os = std.Target.Os.Tag.defaultVersionRange(.%s, .%s);\n", cur_os, cur_arch);
buf_appendf(contents,
"pub const target = std.Target{\n"
" .cpu = cpu,\n"