diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2021-03-30 21:59:03 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-30 21:59:03 +0100 |
| commit | a00d7cc705668da8a8b1a6ebd52668b5e9087bb9 (patch) | |
| tree | d3b386f11251001fde3544076d7b471a26e7038d /src | |
| parent | 3359d0323a3115601b49ac7d6860c8b15babb491 (diff) | |
| parent | 9757af5e4a9c45873726c36ec5af195c8cd0728b (diff) | |
Merge pull request #884 from corruptmemory/corruptmemory/better-define-errors
Helpful error message for invalid `-define:` cases
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index 2496c87ae..802833e78 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1038,6 +1038,7 @@ bool parse_build_flags(Array<String> args) { if (v.kind != ExactValue_Invalid) { map_set(&build_context.defined_values, key, v); } else { + gb_printf_err("Invalid define constant value: '%.*s'. Define constants must be a valid Odin literal.\n", LIT(value)); bad_flags = true; } @@ -1528,7 +1529,7 @@ i32 exec_llvm_opt(String output_base) { "opt \"%.*s.ll\" -o \"%.*s_memcpy_pass.bc\" -memcpyopt" "", LIT(output_base), LIT(output_base)) - + || system_exec_command_line_app("llvm-opt", "opt \"%.*s_memcpy_pass.bc\" -o \"%.*s.bc\" %.*s " "", |