Skip to content

Commit a1bb197

Browse files
committed
fixup! Allow for nested targets
1 parent 29558c0 commit a1bb197

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/driver.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,8 @@ const __llvm_initialized = Ref(false)
222222
for dyn_job in keys(worklist)
223223
# cached compilation
224224
dyn_entry_fn = get!(jobs, dyn_job) do
225-
config = CompilerConfig(dyn_job.config; toplevel=false, target = nest_target(dyn_job.target, job.target))
225+
target = nest_target(dyn_job.config.target, job.config.target)
226+
config = CompilerConfig(dyn_job.config; toplevel=false, target)
226227
dyn_ir, dyn_meta = codegen(:llvm, CompilerJob(dyn_job; config))
227228
dyn_entry_fn = LLVM.name(dyn_meta.entry)
228229
merge!(compiled, dyn_meta.compiled)

0 commit comments

Comments
 (0)