aboutsummaryrefslogtreecommitdiff
path: root/src/glibc.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2020-09-21 21:42:27 -0700
committerAndrew Kelley <andrew@ziglang.org>2020-09-21 21:42:27 -0700
commit974333faaf70eb67b78d3fa83bdc92e91379631a (patch)
treef7f59ef4df3bc2390ff2d06af25fba213f9fc9ce /src/glibc.zig
parent0c70bb4fce8b0460f86ed218f54ba31b291f2bfb (diff)
downloadzig-974333faaf70eb67b78d3fa83bdc92e91379631a.tar.gz
zig-974333faaf70eb67b78d3fa83bdc92e91379631a.zip
stage2: fix linking libc trying to depend on itself
Diffstat (limited to 'src/glibc.zig')
-rw-r--r--src/glibc.zig2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/glibc.zig b/src/glibc.zig
index 9ede436f63..22f060f514 100644
--- a/src/glibc.zig
+++ b/src/glibc.zig
@@ -720,6 +720,7 @@ fn build_crt_file(
.verbose_cimport = comp.verbose_cimport,
.verbose_llvm_cpu_features = comp.verbose_llvm_cpu_features,
.clang_passthrough_mode = comp.clang_passthrough_mode,
+ .is_compiler_rt_or_libc = true,
});
defer sub_compilation.destroy();
@@ -1006,6 +1007,7 @@ fn buildSharedLib(
.version_script = map_file_path,
.override_soname = override_soname,
.c_source_files = &c_source_files,
+ .is_compiler_rt_or_libc = true,
});
defer sub_compilation.destroy();