aboutsummaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2024-11-18 16:44:12 -0800
committerGitHub <noreply@github.com>2024-11-18 16:44:12 -0800
commitfbcb00fbb38715cede40fb4af6b6f99b771ff02a (patch)
tree53709862fe67e2eba89bb08da1866391d11db3a0 /build.zig
parente6d2e1641363c97f53d4168b319b4dca6224e25e (diff)
parent41282e7fb2874c3c838e2b00761d6e8b174a7beb (diff)
downloadzig-fbcb00fbb38715cede40fb4af6b6f99b771ff02a.tar.gz
zig-fbcb00fbb38715cede40fb4af6b6f99b771ff02a.zip
Merge pull request #22004 from jacobly0/fix-self-llvm
fix llvm-enabled compiler builds with the self-hosted backend
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig4
1 files changed, 4 insertions, 0 deletions
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