| ... | @@ -1815,6 +1815,11 @@ fn buildOutputType( | ... | @@ -1815,6 +1815,11 @@ fn buildOutputType( |
| 1815 | @import("codegen/llvm/bindings.zig").ParseCommandLineOptions(argv.len, &argv); | 1815 | @import("codegen/llvm/bindings.zig").ParseCommandLineOptions(argv.len, &argv); |
| 1816 | } | 1816 | } |
| 1817 | | 1817 | |
| | 1818 | const clang_passthrough_mode = switch (arg_mode) { |
| | 1819 | .cc, .cpp, .translate_c => true, |
| | 1820 | else => false, |
| | 1821 | }; |
| | 1822 | |
| 1818 | gimmeMoreOfThoseSweetSweetFileDescriptors(); | 1823 | gimmeMoreOfThoseSweetSweetFileDescriptors(); |
| 1819 | | 1824 | |
| 1820 | const comp = Compilation.create(gpa, .{ | 1825 | const comp = Compilation.create(gpa, .{ |
| ... | @@ -1886,7 +1891,7 @@ fn buildOutputType( | ... | @@ -1886,7 +1891,7 @@ fn buildOutputType( |
| 1886 | .function_sections = function_sections, | 1891 | .function_sections = function_sections, |
| 1887 | .self_exe_path = self_exe_path, | 1892 | .self_exe_path = self_exe_path, |
| 1888 | .thread_pool = &thread_pool, | 1893 | .thread_pool = &thread_pool, |
| 1889 | .clang_passthrough_mode = arg_mode != .build, | 1894 | .clang_passthrough_mode = clang_passthrough_mode, |
| 1890 | .clang_preprocessor_mode = clang_preprocessor_mode, | 1895 | .clang_preprocessor_mode = clang_preprocessor_mode, |
| 1891 | .version = optional_version, | 1896 | .version = optional_version, |
| 1892 | .libc_installation = if (libc_installation) |*lci| lci else null, | 1897 | .libc_installation = if (libc_installation) |*lci| lci else null, |