diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-10-07 00:46:05 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-10-07 00:46:05 -0700 |
| commit | b5a36f676b1fd69f195d9f1eb6e35f3eb2f15946 (patch) | |
| tree | 92ce1ffa64bc2d32d5ef73dce66daf3c8e893ee6 /src/stage1/zig0.cpp | |
| parent | d6d05fc84d33c71434a1f8bae51ca5956e08cdf0 (diff) | |
| parent | f2d374e8465042fa5cb6bf2be7b9b086948f3a94 (diff) | |
| download | zig-b5a36f676b1fd69f195d9f1eb6e35f3eb2f15946.tar.gz zig-b5a36f676b1fd69f195d9f1eb6e35f3eb2f15946.zip | |
Merge remote-tracking branch 'origin/master' into llvm11
Conflicts:
cmake/Findllvm.cmake
The llvm11 branch changed 10's to 11's and master branch added the
"using LLVM_CONFIG_EXE" help message, so the resolution was to merge
these changes together.
I also added a check to make sure LLVM is built with AVR enabled, which
is no longer an experimental target.
Diffstat (limited to 'src/stage1/zig0.cpp')
| -rw-r--r-- | src/stage1/zig0.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/stage1/zig0.cpp b/src/stage1/zig0.cpp index 839ff0263f..6b55d97fac 100644 --- a/src/stage1/zig0.cpp +++ b/src/stage1/zig0.cpp @@ -430,6 +430,16 @@ int main(int argc, char **argv) { return print_error_usage(arg0); } + if (override_lib_dir == nullptr) { + fprintf(stderr, "missing --override-lib-dir\n"); + return print_error_usage(arg0); + } + + if (emit_bin_path == nullptr) { + fprintf(stderr, "missing -femit-bin=\n"); + return print_error_usage(arg0); + } + ZigStage1 *stage1 = zig_stage1_create(optimize_mode, nullptr, 0, in_file, strlen(in_file), |
