mirror of
https://github.com/ziglang/zig.git
synced 2026-02-21 00:35:10 +00:00
Disable binary generation when deprecated --emit is used
This commit is contained in:
parent
2502cb242a
commit
9c98c73e73
@ -746,10 +746,12 @@ static int main0(int argc, char **argv) {
|
||||
} else if (strcmp(arg, "--emit") == 0) {
|
||||
if (strcmp(argv[i], "asm") == 0) {
|
||||
emit_asm = true;
|
||||
disable_bin_generation = true;
|
||||
} else if (strcmp(argv[i], "bin") == 0) {
|
||||
disable_bin_generation = false;
|
||||
} else if (strcmp(argv[i], "llvm-ir") == 0) {
|
||||
emit_llvm_ir = true;
|
||||
disable_bin_generation = true;
|
||||
} else {
|
||||
fprintf(stderr, "--emit options are 'asm', 'bin', or 'llvm-ir'\n");
|
||||
return print_error_usage(arg0);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user