| author | |
| committer | |
| log | 6beae6c061a650ea2d695e6902683641df920aa8 |
| tree | 9a8264bfdce3b56d1e6775357f3cb44dd799d39a |
| parent | 951c5b3f67e086c50ba8d0cd9318cb770fd3f724 |
use_llvm=false does not always mean there needs to be a zig compiler
backend available. In particular, when there is no zig compilation unit,
use_llvm=false and yet no zig backend will be used to produce code.1 files changed, 1 insertions(+), 1 deletions(-)
src/Compilation/Config.zig+1-1| ... | ... | @@ -237,7 +237,7 @@ pub fn resolve(options: Options) ResolveError!Config { |
| 237 | 237 | break :b !target_util.selfHostedBackendIsAsRobustAsLlvm(target); |
| 238 | 238 | }; |
| 239 | 239 | |
| 240 | if (options.emit_bin) { | |
| 240 | if (options.emit_bin and options.have_zcu) { | |
| 241 | 241 | if (!use_lib_llvm and use_llvm) { |
| 242 | 242 | // Explicit request to use LLVM to produce an object file, but without |
| 243 | 243 | // using LLVM libraries. Impossible. |