| ... | ... | @@ -6362,6 +6362,13 @@ fn addCommonCCArgs( |
| 6362 | 6362 | try argv.append( |
| 6363 | 6363 | try std.fmt.allocPrint(arena, "-D_WIN32_WINNT=0x{x:0>4}", .{minver}), |
| 6364 | 6364 | ); |
| 6365 | |
| 6366 | // MinGW-w64's inline functions in headers (e.g. `fabs`), which are emitted with `linkonce_odr` |
| 6367 | // linkage, sometimes cause duplicate symbol errors due to us providing the same symbols with |
| 6368 | // `weak` linkage in compiler-rt or libzigc. So just disable them. Besides, they undermine the |
| 6369 | // goal of moving more libc code to Zig, and they're also just kind of unnecessary since LLVM is |
| 6370 | // perfectly capable of recognizing and optimizing libcalls. |
| 6371 | try argv.append("-D__CRT__NO_INLINE"); |
| 6365 | 6372 | } else if (target.isFreeBSDLibC()) { |
| 6366 | 6373 | // https://docs.freebsd.org/en/books/porters-handbook/versions |
| 6367 | 6374 | const min_ver = target.os.version_range.semver.min; |