File tree Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -90,17 +90,19 @@ include("log_capture.jl")
90
90
include (" filtering.jl" )
91
91
92
92
function __init__ ()
93
- DEFAULT_STDOUT[] = stdout
94
- DEFAULT_STDERR[] = stderr
95
- DEFAULT_LOGSTATE[] = Base. CoreLogging. _global_logstate
96
- DEFAULT_LOGGER[] = Base. CoreLogging. _global_logstate. logger
97
- # Disable killing workers based on memory pressure on MacOS til calculations fixed.
98
- # TODO : fix https://github.com/JuliaTesting/ReTestItems.jl/issues/113
99
- @static if Sys. isapple ()
100
- DEFAULT_MEMORY_THRESHOLD[] = 1.0
93
+ if ccall (:jl_generating_output , Cint, ()) == 0 # not precompiling
94
+ DEFAULT_STDOUT[] = stdout
95
+ DEFAULT_STDERR[] = stderr
96
+ DEFAULT_LOGSTATE[] = Base. CoreLogging. _global_logstate
97
+ DEFAULT_LOGGER[] = Base. CoreLogging. _global_logstate. logger
98
+ # Disable killing workers based on memory pressure on MacOS til calculations fixed.
99
+ # TODO : fix https://github.com/JuliaTesting/ReTestItems.jl/issues/113
100
+ @static if Sys. isapple ()
101
+ DEFAULT_MEMORY_THRESHOLD[] = 1.0
102
+ end
103
+ # Defer setting up the temp folder for pkgimage relocability
104
+ RETESTITEMS_TEMP_FOLDER[] = mkpath (joinpath (tempdir (), " ReTestItemsTempLogsDirectory" ))
101
105
end
102
- # Defer setting up the temp folder for pkgimage relocability
103
- RETESTITEMS_TEMP_FOLDER[] = mkpath (joinpath (tempdir (), " ReTestItemsTempLogsDirectory" ))
104
106
return nothing
105
107
end
106
108
You can’t perform that action at this time.
0 commit comments