Skip to content

Commit

Permalink
CI aware precompilation
Browse files Browse the repository at this point in the history
  • Loading branch information
glou-nes committed Dec 12, 2024
1 parent 1fda8c7 commit b30b128
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Reactant.jl
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,8 @@ function set_default_backend(backend::String)
return set_default_backend(XLA.backends[backend])
end

#HACK: Disable precompilation for test
@info gethostname()
@static if splitpath(Base.active_project())[3] != "runner"
@info "enable precompilation" Base.active_project()
@static if !haskey(ENV, "REACTANT_TEST_GROUP")
@info "enable precompilation" gethostname() Base.active_project()
include("precompile.jl")
end

Expand Down

0 comments on commit b30b128

Please sign in to comment.