Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions src/workloads.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,9 @@ const newly_inferred = Core.CodeInstance[] # only used to support verbose[]

function workload_enabled(mod::Module)
try
if load_preference(@__MODULE__, "precompile_workloads", true)
return load_preference(mod, "precompile_workload", true)
else
return false
end
load_preference(@__MODULE__, "precompile_workloads", true) && load_preference(mod, "precompile_workload", true)
catch
@warn "Preference for the module $mod can't be loaded. passing by default value (true)"
true
end
end
Expand Down
Loading