mirror of
https://github.com/ziglang/zig.git
synced 2024-11-26 15:12:31 +00:00
build.zig: fix libc++ being a linker script
This commit is contained in:
parent
5be8a5fe5f
commit
41282e7fb2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user