Skip to content

Commit

Permalink
Allow for deferred codegen in !toplevel
Browse files Browse the repository at this point in the history
  • Loading branch information
vchuravy committed May 16, 2024
1 parent 288b613 commit 0e00885
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/driver.jl
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ const __llvm_initialized = Ref(false)
entry = finish_module!(job, ir, entry)

# deferred code generation
has_deferred_jobs = !only_entry && toplevel &&
has_deferred_jobs = !only_entry &&
haskey(functions(ir), "deferred_codegen")
jobs = Dict{CompilerJob, String}(job => entry_fn)
if has_deferred_jobs
Expand Down

0 comments on commit 0e00885

Please sign in to comment.