diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-09-29 18:32:41 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-09-29 18:32:41 -0700 |
| commit | 1572cd4d76dfa35e6a05bbb1405982d7fef6f833 (patch) | |
| tree | 9fcbeff7b1cbc3e0ca3450feec5aad5e21138a7d /src/link.zig | |
| parent | af64fd2f424401ff66638696b35b1bf385c4b039 (diff) | |
| download | zig-1572cd4d76dfa35e6a05bbb1405982d7fef6f833.tar.gz zig-1572cd4d76dfa35e6a05bbb1405982d7fef6f833.zip | |
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.
Diffstat (limited to 'src/link.zig')
| -rw-r--r-- | src/link.zig | 1 |
1 files changed, 1 insertions, 0 deletions
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, |
