From 1572cd4d76dfa35e6a05bbb1405982d7fef6f833 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Tue, 29 Sep 2020 18:32:41 -0700 Subject: different strategy to fix compiler_rt.zig and c.zig with respect to std.builtin.link_libc. The commit 27e008eb292038c5a6b9a13b64c7b69d1525f690 did not solve the problem because although it got std.builtin.link_libc to be true for compiler_rt.zig and c.zig, it had other unintentional side effects which broke the build for -lc -target foo-linux-musl. This commit introduces a new flag to Compilation to allow setting this comptime flag to true without introducing other side effects to compilation and linking. --- src/link.zig | 1 + 1 file changed, 1 insertion(+) (limited to 'src/link.zig') diff --git a/src/link.zig b/src/link.zig index 2d215ea0dc..4d28c8a1a7 100644 --- a/src/link.zig +++ b/src/link.zig @@ -73,6 +73,7 @@ pub const Options = struct { dll_export_fns: bool, error_return_tracing: bool, is_compiler_rt_or_libc: bool, + parent_compilation_link_libc: bool, each_lib_rpath: bool, disable_lld_caching: bool, is_test: bool, -- cgit v1.2.3