| ... | ... | @@ -1001,13 +1001,15 @@ pub fn create(gpa: Allocator, options: InitOptions) !*Compilation { |
| 1001 | 1001 | options.libc_installation, |
| 1002 | 1002 | ); |
| 1003 | 1003 | |
| 1004 | | // .rc preprocessor needs to know the libc dirs even if we are not linking libc |
| 1005 | 1004 | const rc_dirs = try detectLibCIncludeDirs( |
| 1006 | 1005 | arena, |
| 1007 | 1006 | options.zig_lib_directory.path.?, |
| 1008 | 1007 | options.target, |
| 1009 | 1008 | options.is_native_abi, |
| 1010 | | true, |
| 1009 | // Set "link libc" to true here whenever there are rc files to compile, since |
| 1010 | // the .rc preprocessor will need to know the libc include dirs even if we |
| 1011 | // are not linking libc |
| 1012 | options.rc_source_files.len > 0, |
| 1011 | 1013 | options.libc_installation, |
| 1012 | 1014 | ); |
| 1013 | 1015 | |