diff options
| author | alter <p@scene.cl> | 2016-09-12 01:01:06 -0300 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2016-09-14 02:46:02 -0400 |
| commit | cf9b21c09fc641b4697e06981ac5114a8d3d09ab (patch) | |
| tree | a69ab92c864c8807209eb09214b868bf8cce39ec /src/codegen.cpp | |
| parent | 06f2f4d64b63cf78a3ff77cc64dbc822123f454d (diff) | |
| download | zig-cf9b21c09fc641b4697e06981ac5114a8d3d09ab.tar.gz zig-cf9b21c09fc641b4697e06981ac5114a8d3d09ab.zip | |
MacOSX compatibility
- Implemented some syscall for MacOSX
- tested on : El Capitan 10.11 x86_64
- make self hosted test run on macosx
- modified run_test so it does not fail when parseh throws
warnings (most of them are related to buildin types from
gcc that arent defined in header files and unions)
- making -mmacosx-version-min and -mios-version-min works like
gcc (command line paramers have precedence over enviroment variables)
Diffstat (limited to 'src/codegen.cpp')
| -rw-r--r-- | src/codegen.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/codegen.cpp b/src/codegen.cpp index ddf06b7eef..e2dd435598 100644 --- a/src/codegen.cpp +++ b/src/codegen.cpp @@ -42,9 +42,14 @@ static void init_darwin_native(CodeGen *g) { g->mmacosx_version_min = buf_create_from_str(osx_target); } else if (ios_target) { g->mios_version_min = buf_create_from_str(ios_target); - } else { - zig_panic("unable to determine -mmacosx-version-min or -mios-version-min"); } + + // we should check for the command line option to throw an error if not specified + // + + /* else { + zig_panic("unable to determine -mmacosx-version-min or -mios-version-min"); + } */ } static PackageTableEntry *new_package(const char *root_src_dir, const char *root_src_path) { |
