| ... | ... | @@ -1371,15 +1371,17 @@ static int main0(int argc, char **argv) { |
| 1371 | 1371 | return print_error_usage(arg0); |
| 1372 | 1372 | } |
| 1373 | 1373 | |
| 1374 | | bool any_non_c_link_libs = false; |
| 1374 | bool any_system_lib_dependencies = false; |
| 1375 | 1375 | for (size_t i = 0; i < link_libs.length; i += 1) { |
| 1376 | | if (!target_is_libc_lib_name(&target, link_libs.at(i))) { |
| 1377 | | any_non_c_link_libs = true; |
| 1376 | if (!target_is_libc_lib_name(&target, link_libs.at(i)) && |
| 1377 | !target_is_libcpp_lib_name(&target, link_libs.at(i))) |
| 1378 | { |
| 1379 | any_system_lib_dependencies = true; |
| 1378 | 1380 | break; |
| 1379 | 1381 | } |
| 1380 | 1382 | } |
| 1381 | 1383 | |
| 1382 | | if (target.is_native_os && any_non_c_link_libs) { |
| 1384 | if (target.is_native_os && any_system_lib_dependencies) { |
| 1383 | 1385 | Error err; |
| 1384 | 1386 | Stage2NativePaths paths; |
| 1385 | 1387 | if ((err = stage2_detect_native_paths(&paths))) { |