From 41282e7fb2874c3c838e2b00761d6e8b174a7beb Mon Sep 17 00:00:00 2001 From: Jacob Young Date: Sun, 17 Nov 2024 00:55:09 -0500 Subject: [PATCH] build.zig: fix libc++ being a linker script --- build.zig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build.zig b/build.zig index 633d11419f..ed84e037ae 100644 --- a/build.zig +++ b/build.zig @@ -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