diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2017-08-30 14:55:26 -0400 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2017-08-30 14:55:26 -0400 |
| commit | 0e9bdb44a6ca022558ed703749353c76e796dc35 (patch) | |
| tree | aeedbc3a20024875139cf892fa6dbdf4f08e35d0 /src/link.cpp | |
| parent | 052b4ae9415596e0b6b6c32b9b4f2d3ff8c9e953 (diff) | |
| download | zig-0e9bdb44a6ca022558ed703749353c76e796dc35.tar.gz zig-0e9bdb44a6ca022558ed703749353c76e796dc35.zip | |
test suite cross-compile builds tests for other targets
Diffstat (limited to 'src/link.cpp')
| -rw-r--r-- | src/link.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/link.cpp b/src/link.cpp index da9cff8ffb..7d5ae7dd94 100644 --- a/src/link.cpp +++ b/src/link.cpp @@ -573,6 +573,9 @@ static void get_darwin_platform(LinkJob *lj, DarwinPlatform *platform) { platform->kind = MacOS; } else if (g->mios_version_min) { platform->kind = IPhoneOS; + } else if (g->zig_target.os == ZigLLVM_MacOSX) { + platform->kind = MacOS; + g->mmacosx_version_min = buf_create_from_str("10.10"); } else { zig_panic("unable to infer -mmacosx-version-min or -mios-version-min"); } |
