mirror of
https://github.com/ziglang/zig.git
synced 2024-11-27 07:32:44 +00:00
Merge pull request #13108 from topolarity/llvm-lib-dir
build.zig: Forward LLVM lib/include dirs from CMake
This commit is contained in:
commit
1087e67762
@ -339,7 +339,10 @@ pub fn build(b: *Builder) !void {
|
|||||||
// That means we also have to rely on stage1 compiled c++ files. We parse config.h to find
|
// That means we also have to rely on stage1 compiled c++ files. We parse config.h to find
|
||||||
// the information passed on to us from cmake.
|
// the information passed on to us from cmake.
|
||||||
if (cfg.cmake_prefix_path.len > 0) {
|
if (cfg.cmake_prefix_path.len > 0) {
|
||||||
b.addSearchPrefix(cfg.cmake_prefix_path);
|
var it = mem.tokenize(u8, cfg.cmake_prefix_path, ";");
|
||||||
|
while (it.next()) |path| {
|
||||||
|
b.addSearchPrefix(path);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
try addCmakeCfgOptionsToExe(b, cfg, exe, use_zig_libcxx);
|
try addCmakeCfgOptionsToExe(b, cfg, exe, use_zig_libcxx);
|
||||||
|
Loading…
Reference in New Issue
Block a user