diff options
| author | Jacob Young <jacobly0@users.noreply.github.com> | 2024-11-17 00:55:09 -0500 |
|---|---|---|
| committer | Jacob Young <jacobly0@users.noreply.github.com> | 2024-11-17 00:55:36 -0500 |
| commit | 41282e7fb2874c3c838e2b00761d6e8b174a7beb (patch) | |
| tree | 9fc0dff2dcfabb992a79d743e86d27d4f1d3d884 /build.zig | |
| parent | 5be8a5fe5f25064ce963fa7a38942e387254de8d (diff) | |
| download | zig-41282e7fb2874c3c838e2b00761d6e8b174a7beb.tar.gz zig-41282e7fb2874c3c838e2b00761d6e8b174a7beb.zip | |
build.zig: fix libc++ being a linker script
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -861,6 +861,10 @@ fn addCxxKnownPath( } return error.RequiredLibraryNotFound; } + // By default, explicit library paths are not checked for being linker scripts, + // but libc++ may very well be one, so force all inputs to be checked when passing + // an explicit path to libc++. + exe.allow_so_scripts = true; exe.addObjectFile(.{ .cwd_relative = path_unpadded }); // TODO a way to integrate with system c++ include files here |
