Skip to content

Commit

Permalink
[julia] Move loading of Static* packages to the source file
Browse files Browse the repository at this point in the history
  • Loading branch information
giordano committed Oct 22, 2022
1 parent 5a2cf18 commit 61affff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ julia-compiled:
COPY ./src/rounds.txt ./
COPY ./src/leibniz.jl ./
COPY ./src/leibniz_compiled.jl ./
RUN julia -e 'using Pkg; Pkg.add(["StaticCompiler", "StaticTools"]); using StaticCompiler, StaticTools; include("./leibniz_compiled.jl"); compile_executable(mainjl, (), "./")'
RUN julia -e 'using Pkg; Pkg.add(name="StaticTools", version="0.8"); Pkg.add(name="StaticCompiler", version="0.4"); include("./leibniz_compiled.jl"); compile_executable(mainjl, (), "./")'
DO +BENCH --name="julia-compiled" --lang="Julia (AOT compiled)" --version="julia --version" --cmd="./mainjl"

nodejs:
Expand Down
2 changes: 2 additions & 0 deletions src/leibniz_compiled.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
using StaticCompiler, StaticTools

include("leibniz.jl")

function mainjl()
Expand Down

0 comments on commit 61affff

Please sign in to comment.