| ... | @@ -1238,7 +1238,6 @@ pub fn create(gpa: Allocator, options: InitOptions) !*Compilation { | ... | @@ -1238,7 +1238,6 @@ pub fn create(gpa: Allocator, options: InitOptions) !*Compilation { |
| 1238 | options.target, | 1238 | options.target, |
| 1239 | options.is_native_abi, | 1239 | options.is_native_abi, |
| 1240 | link_libc, | 1240 | link_libc, |
| 1241 | options.system_lib_names.len != 0 or options.frameworks.count() != 0, | | |
| 1242 | options.libc_installation, | 1241 | options.libc_installation, |
| 1243 | options.native_darwin_sdk != null, | 1242 | options.native_darwin_sdk != null, |
| 1244 | ); | 1243 | ); |
| ... | @@ -4522,7 +4521,6 @@ fn detectLibCIncludeDirs( | ... | @@ -4522,7 +4521,6 @@ fn detectLibCIncludeDirs( |
| 4522 | target: Target, | 4521 | target: Target, |
| 4523 | is_native_abi: bool, | 4522 | is_native_abi: bool, |
| 4524 | link_libc: bool, | 4523 | link_libc: bool, |
| 4525 | link_system_libs: bool, | | |
| 4526 | libc_installation: ?*const LibCInstallation, | 4524 | libc_installation: ?*const LibCInstallation, |
| 4527 | has_macos_sdk: bool, | 4525 | has_macos_sdk: bool, |
| 4528 | ) !LibCDirs { | 4526 | ) !LibCDirs { |
| ... | @@ -4539,7 +4537,7 @@ fn detectLibCIncludeDirs( | ... | @@ -4539,7 +4537,7 @@ fn detectLibCIncludeDirs( |
| 4539 | | 4537 | |
| 4540 | // If linking system libraries and targeting the native abi, default to | 4538 | // If linking system libraries and targeting the native abi, default to |
| 4541 | // using the system libc installation. | 4539 | // using the system libc installation. |
| 4542 | if (link_system_libs and is_native_abi and !target.isMinGW()) { | 4540 | if (is_native_abi and !target.isMinGW()) { |
| 4543 | if (target.isDarwin()) { | 4541 | if (target.isDarwin()) { |
| 4544 | return if (has_macos_sdk) | 4542 | return if (has_macos_sdk) |
| 4545 | // For Darwin/macOS, we are all set with getDarwinSDK found earlier. | 4543 | // For Darwin/macOS, we are all set with getDarwinSDK found earlier. |