Skip to content

Commit

Permalink
handle nothing result for JULIA_VERBOSE_LINKING (JuliaLang#54383)
Browse files Browse the repository at this point in the history
As written, this function would error if the environment variable has
ambiguous "truthiness".
  • Loading branch information
topolarity authored and lazarusA committed Jul 12, 2024
1 parent 2a44f24 commit dadd72d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/linking.jl
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ end
const VERBOSE = Ref{Bool}(false)

function __init__()
VERBOSE[] = Base.get_bool_env("JULIA_VERBOSE_LINKING", false)
VERBOSE[] = something(Base.get_bool_env("JULIA_VERBOSE_LINKING", false), false)

__init_lld_path()
__init_dsymutil_path()
Expand Down

0 comments on commit dadd72d

Please sign in to comment.