Skip to content

Commit 650b7f4

Browse files
committed
also allow it for params
1 parent af89058 commit 650b7f4

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/driver.jl

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

src/interface.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ export AbstractCompilerParams
5959

6060
abstract type AbstractCompilerParams end
6161

62+
nest_params(params::AbstractCompilerParams, parent::AbstractCompilerParams) = params
63+
6264

6365
## config
6466

0 commit comments

Comments
 (0)