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)
This commit is contained in:
alter
2016-09-12 01:01:06 -03:00
committed by Andrew Kelley
parent 06f2f4d64b
commit cf9b21c09f
11 changed files with 285 additions and 51 deletions

View File

@@ -1925,10 +1925,10 @@ static void run_test(TestCase *test_case) {
if (test_case->is_parseh) {
if (buf_len(&zig_stderr) > 0) {
printf("\nparseh emitted warnings:\n");
printf("\n!!!!! parseh emitted warnings:\n");
print_compiler_invocation(test_case);
printf("%s\n", buf_ptr(&zig_stderr));
exit(1);
// exit(1);
}
for (int i = 0; i < test_case->compile_errors.length; i += 1) {