| ... | @@ -88,8 +88,9 @@ static int print_full_usage(const char *arg0, FILE *file, int return_code) { | ... | @@ -88,8 +88,9 @@ static int print_full_usage(const char *arg0, FILE *file, int return_code) { |
| 88 | " --verbose-llvm-ir enable compiler debug output for LLVM IR\n" | 88 | " --verbose-llvm-ir enable compiler debug output for LLVM IR\n" |
| 89 | " --verbose-cimport enable compiler debug output for C imports\n" | 89 | " --verbose-cimport enable compiler debug output for C imports\n" |
| 90 | " --verbose-cc enable compiler debug output for C compilation\n" | 90 | " --verbose-cc enable compiler debug output for C compilation\n" |
| 91 | " -dirafter [dir] same as -isystem but do it last\n" | 91 | " -dirafter [dir] add directory to AFTER include search path\n" |
| 92 | " -isystem [dir] add additional search path for other .h files\n" | 92 | " -isystem [dir] add directory to SYSTEM include search path\n" |
| | 93 | " -I[dir] add directory to include search path\n" |
| 93 | " -mllvm [arg] (unsupported) forward an arg to LLVM's option processing\n" | 94 | " -mllvm [arg] (unsupported) forward an arg to LLVM's option processing\n" |
| 94 | " --override-lib-dir [arg] override path to Zig lib directory\n" | 95 | " --override-lib-dir [arg] override path to Zig lib directory\n" |
| 95 | " -ffunction-sections places each function in a separate section\n" | 96 | " -ffunction-sections places each function in a separate section\n" |
| ... | @@ -708,6 +709,9 @@ int main(int argc, char **argv) { | ... | @@ -708,6 +709,9 @@ int main(int argc, char **argv) { |
| 708 | if (strcmp(l, "c") == 0) | 709 | if (strcmp(l, "c") == 0) |
| 709 | have_libc = true; | 710 | have_libc = true; |
| 710 | link_libs.append(l); | 711 | link_libs.append(l); |
| | 712 | } else if (arg[1] == 'I' && arg[2] != 0) { |
| | 713 | clang_argv.append("-I"); |
| | 714 | clang_argv.append(&arg[2]); |
| 711 | } else if (arg[1] == 'F' && arg[2] != 0) { | 715 | } else if (arg[1] == 'F' && arg[2] != 0) { |
| 712 | framework_dirs.append(&arg[2]); | 716 | framework_dirs.append(&arg[2]); |
| 713 | } else if (strcmp(arg, "--pkg-begin") == 0) { | 717 | } else if (strcmp(arg, "--pkg-begin") == 0) { |
| ... | @@ -783,6 +787,9 @@ int main(int argc, char **argv) { | ... | @@ -783,6 +787,9 @@ int main(int argc, char **argv) { |
| 783 | } else if (strcmp(arg, "-isystem") == 0) { | 787 | } else if (strcmp(arg, "-isystem") == 0) { |
| 784 | clang_argv.append("-isystem"); | 788 | clang_argv.append("-isystem"); |
| 785 | clang_argv.append(argv[i]); | 789 | clang_argv.append(argv[i]); |
| | 790 | } else if (strcmp(arg, "-I") == 0) { |
| | 791 | clang_argv.append("-I"); |
| | 792 | clang_argv.append(argv[i]); |
| 786 | } else if (strcmp(arg, "-dirafter") == 0) { | 793 | } else if (strcmp(arg, "-dirafter") == 0) { |
| 787 | clang_argv.append("-dirafter"); | 794 | clang_argv.append("-dirafter"); |
| 788 | clang_argv.append(argv[i]); | 795 | clang_argv.append(argv[i]); |