mirror of
https://github.com/ziglang/zig.git
synced 2026-01-03 20:13:21 +00:00
frontend: avoid spurious error when no zcu
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.
This commit is contained in:
parent
951c5b3f67
commit
6beae6c061
@ -237,7 +237,7 @@ pub fn resolve(options: Options) ResolveError!Config {
|
||||
break :b !target_util.selfHostedBackendIsAsRobustAsLlvm(target);
|
||||
};
|
||||
|
||||
if (options.emit_bin) {
|
||||
if (options.emit_bin and options.have_zcu) {
|
||||
if (!use_lib_llvm and use_llvm) {
|
||||
// Explicit request to use LLVM to produce an object file, but without
|
||||
// using LLVM libraries. Impossible.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user