Skip to content

Commit

Permalink
Merge pull request JuliaInterop#454 from schmrlng/system_header_overr…
Browse files Browse the repository at this point in the history
…ides

Move user override for standard headers to take precedence over all others
  • Loading branch information
Gnimuc authored Dec 30, 2019
2 parents f7ab072 + 63bfb5b commit 14c403a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/initialization.jl
Original file line number Diff line number Diff line change
Expand Up @@ -383,10 +383,10 @@ function collectClangHeaders!(headers)
end

function collectAllHeaders!(headers, nostdcxx)
nostdcxx || collectStdHeaders!(headers)
for header in split(get(ENV, "CXXJL_HEADER_DIRS", ""), ":")
isempty(header) || push!(headers, (header, C_System))
end
nostdcxx || collectStdHeaders!(headers)
collectClangHeaders!(headers)
headers
end
Expand Down

0 comments on commit 14c403a

Please sign in to comment.