Skip to content

Commit 04ea3d1

Browse files
committed
debug: avoid duplicate precompile macros
1 parent 37392e4 commit 04ea3d1

1 file changed

Lines changed: 3 additions & 9 deletions

File tree

src/ModelPredictiveControl.jl

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,8 @@ include("state_estim.jl")
5757
include("predictive_control.jl")
5858
include("plot_sim.jl")
5959

60-
@setup_workload begin
61-
# Putting some things in `@setup_workload` instead of `@compile_workload` can reduce the
62-
# size of the precompile file and potentially make loading faster.
63-
@compile_workload begin
64-
# all calls in this block will be precompiled, regardless of whether
65-
# they belong to your package or not (on Julia 1.8 and higher)
66-
include("precompile.jl")
67-
end
68-
end
60+
61+
include("precompile.jl")
62+
6963

7064
end

0 commit comments

Comments
 (0)