mirror of
https://github.com/ziglang/zig.git
synced 2026-02-12 20:37:54 +00:00
stage2: do not set clang_passthrough_mode for zig run
Thanks to @g-w1 for discovering this bug. closes #8450
This commit is contained in:
parent
ec212c82be
commit
f253822415
@ -1815,6 +1815,11 @@ fn buildOutputType(
|
||||
@import("codegen/llvm/bindings.zig").ParseCommandLineOptions(argv.len, &argv);
|
||||
}
|
||||
|
||||
const clang_passthrough_mode = switch (arg_mode) {
|
||||
.cc, .cpp, .translate_c => true,
|
||||
else => false,
|
||||
};
|
||||
|
||||
gimmeMoreOfThoseSweetSweetFileDescriptors();
|
||||
|
||||
const comp = Compilation.create(gpa, .{
|
||||
@ -1886,7 +1891,7 @@ fn buildOutputType(
|
||||
.function_sections = function_sections,
|
||||
.self_exe_path = self_exe_path,
|
||||
.thread_pool = &thread_pool,
|
||||
.clang_passthrough_mode = arg_mode != .build,
|
||||
.clang_passthrough_mode = clang_passthrough_mode,
|
||||
.clang_preprocessor_mode = clang_preprocessor_mode,
|
||||
.version = optional_version,
|
||||
.libc_installation = if (libc_installation) |*lci| lci else null,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user