authorgravatar for jacobly@ziglang.orgJacob Young <jacobly@ziglang.org> 2024-11-17 00:55:09-05:00
committergravatar for jacobly@ziglang.orgJacob Young <jacobly@ziglang.org> 2024-11-17 00:55:36-05:00
log41282e7fb2874c3c838e2b00761d6e8b174a7beb
tree9fc0dff2dcfabb992a79d743e86d27d4f1d3d884
parent5be8a5fe5f25064ce963fa7a38942e387254de8d

build.zig: fix libc++ being a linker script


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

build.zig+4
...@@ -861,6 +861,10 @@ fn addCxxKnownPath(...@@ -861,6 +861,10 @@ fn addCxxKnownPath(
861 }861 }
862 return error.RequiredLibraryNotFound;862 return error.RequiredLibraryNotFound;
863 }863 }
864 // By default, explicit library paths are not checked for being linker scripts,
865 // but libc++ may very well be one, so force all inputs to be checked when passing
866 // an explicit path to libc++.
867 exe.allow_so_scripts = true;
864 exe.addObjectFile(.{ .cwd_relative = path_unpadded });868 exe.addObjectFile(.{ .cwd_relative = path_unpadded });
865869
866 // TODO a way to integrate with system c++ include files here870 // TODO a way to integrate with system c++ include files here