mirror of
https://github.com/ziglang/zig.git
synced 2024-11-26 23:22:44 +00:00
cli: set sysroot when --sysroot option was passed
Fixes regression introduced in 0b47e69b7c
This commit is contained in:
parent
0d192ee9ef
commit
ebf9ffd342
@ -1034,8 +1034,9 @@ fn buildOutputType(
|
|||||||
} else if (mem.eql(u8, arg, "--dynamic-linker")) {
|
} else if (mem.eql(u8, arg, "--dynamic-linker")) {
|
||||||
target_dynamic_linker = args_iter.nextOrFatal();
|
target_dynamic_linker = args_iter.nextOrFatal();
|
||||||
} else if (mem.eql(u8, arg, "--sysroot")) {
|
} else if (mem.eql(u8, arg, "--sysroot")) {
|
||||||
|
sysroot = args_iter.nextOrFatal();
|
||||||
try clang_argv.append("-isysroot");
|
try clang_argv.append("-isysroot");
|
||||||
try clang_argv.append(args_iter.nextOrFatal());
|
try clang_argv.append(sysroot.?);
|
||||||
} else if (mem.eql(u8, arg, "--libc")) {
|
} else if (mem.eql(u8, arg, "--libc")) {
|
||||||
libc_paths_file = args_iter.nextOrFatal();
|
libc_paths_file = args_iter.nextOrFatal();
|
||||||
} else if (mem.eql(u8, arg, "--test-filter")) {
|
} else if (mem.eql(u8, arg, "--test-filter")) {
|
||||||
|
Loading…
Reference in New Issue
Block a user