diff --git a/src/execution.jl b/src/execution.jl index d2346a66..773eec8f 100644 --- a/src/execution.jl +++ b/src/execution.jl @@ -479,6 +479,9 @@ function generate_benchmark_definition(eval_module, out_vars, setup_vars, quote_ invocation = :($(Expr(:tuple, out_vars...)) = $(signature)) core_body = :($(core); $(returns)) end + if isdefined(Base, :donotdelete) + invocation = :(Base.donotdelete($invocation)) + end return Core.eval(eval_module, quote @noinline $(signature_def) = begin $(core_body) end @noinline function $(samplefunc)($(Expr(:tuple, quote_vars...)), __params::$BenchmarkTools.Parameters) @@ -611,4 +614,4 @@ macro bprofile(args...) $BenchmarkTools.Profile.clear() $BenchmarkTools.@profile $BenchmarkTools.run($tmp) end) -end \ No newline at end of file +end