diff options
| author | gingerBill <bill@gingerbill.org> | 2023-01-02 15:30:04 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2023-01-02 15:30:04 +0000 |
| commit | 529383f5b17d74f66bebb8679820a69476635b6a (patch) | |
| tree | 67754a8f0458378fb67888912e6cf956956aa01a /src/llvm_backend.cpp | |
| parent | f01cff7ff0d61a4bd222be159243775b5d9bf3e7 (diff) | |
Correct a race condition when checking the procedure body
Diffstat (limited to 'src/llvm_backend.cpp')
| -rw-r--r-- | src/llvm_backend.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/llvm_backend.cpp b/src/llvm_backend.cpp index 1c401552e..3e62f678a 100644 --- a/src/llvm_backend.cpp +++ b/src/llvm_backend.cpp @@ -2255,6 +2255,12 @@ gb_internal void lb_generate_code(lbGenerator *gen) { } } + if (build_context.ignore_llvm_build) { + gb_printf_err("LLVM SUCCESS!\n"); + gb_exit(1); + return; + } + if (do_threading && non_empty_module_count > 1) { for (auto const &entry : gen->modules) { lbModule *m = entry.value; |