authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-10-15 12:36:38-04:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2022-10-15 12:36:38-04:00
log1087e677625b0846cf25dc43474a63f9a25f1e32
tree640b322e48d4cd3d189f0929b4c888c37253a472
parent16cc65242fd6e2fc9883fb87e5e78e1d1641db3e
parent50a6dc8496c7c4ccb1ac30ad53da524dd3161c15
signaturebadge-question-mark Signed by PGP key 4AEE18F83AFDEB23

Merge pull request #13108 from topolarity/llvm-lib-dir

build.zig: Forward LLVM lib/include dirs from CMake

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

build.zig+4-1
...@@ -339,7 +339,10 @@ pub fn build(b: *Builder) !void {...@@ -339,7 +339,10 @@ pub fn build(b: *Builder) !void {
339 // That means we also have to rely on stage1 compiled c++ files. We parse config.h to find339 // That means we also have to rely on stage1 compiled c++ files. We parse config.h to find
340 // the information passed on to us from cmake.340 // the information passed on to us from cmake.
341 if (cfg.cmake_prefix_path.len > 0) {341 if (cfg.cmake_prefix_path.len > 0) {
342 b.addSearchPrefix(cfg.cmake_prefix_path);342 var it = mem.tokenize(u8, cfg.cmake_prefix_path, ";");
343 while (it.next()) |path| {
344 b.addSearchPrefix(path);
345 }
343 }346 }
344347
345 try addCmakeCfgOptionsToExe(b, cfg, exe, use_zig_libcxx);348 try addCmakeCfgOptionsToExe(b, cfg, exe, use_zig_libcxx);