Skip to content

Commit 9bb5a5f

Browse files
authored
Don't look up MinGW artifact if "JULIA_CC" is set
see JuliaLang/JuliaC.jl#67
1 parent a9af8ed commit 9bb5a5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PackageCompiler.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ const WARNED_CPP_COMPILER = Ref{Bool}(false)
211211
function get_compiler_cmd(; cplusplus::Bool=false)
212212
cc = get(ENV, "JULIA_CC", nothing)
213213
path = nothing
214-
@static if Sys.iswindows()
214+
@static if Sys.iswindows() && cc === nothing
215215
path = joinpath(LazyArtifacts.artifact"mingw-w64", "extracted_files", (Int==Int64 ? "mingw64" : "mingw32"), "bin", cplusplus ? "g++.exe" : "gcc.exe")
216216
compiler_cmd = `$path`
217217
end

0 commit comments

Comments
 (0)