authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-12-06 14:44:24+01:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-12-06 14:57:22+01:00
logda794ec7a3f6c0aab04561f1d5e0d248f9a806e4
treefc00f072c585181b1b5bed1c72bc207780076535
parenta879c3ea0b6cf46c879b0c92925fd6024c2d4ca4
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

compiler: Remove warning about superfluous compiler-rt libraries.

* This warning's wording is actually inaccurate when using the -fno-compiler-rt or -rtlib=none options. * It's not all that helpful; it's already understood that these libraries are part of the compiler, so printing a warning is just noise. In practice, this warning would always happen when building upstream musl, for example. * We don't warn when we satisfy -lunwind using our bundled libunwind either, or various libc libraries using our bundled libc, or when providing libc++, etc. So I really don't think we should be warning here either.

1 files changed, 1 insertions(+), 4 deletions(-)

src/main.zig+1-4
...@@ -3838,10 +3838,7 @@ fn createModule(...@@ -3838,10 +3838,7 @@ fn createModule(
3838 create_module.opts.link_libunwind = true;3838 create_module.opts.link_libunwind = true;
3839 continue;3839 continue;
3840 },3840 },
3841 .only_compiler_rt => {3841 .only_compiler_rt => continue,
3842 warn("ignoring superfluous library '{s}': this dependency is fulfilled instead by compiler-rt which zig unconditionally provides", .{lib_name});
3843 continue;
3844 },
3845 }3842 }
38463843
3847 if (target.isMinGW()) {3844 if (target.isMinGW()) {