Skip to content

Commit e4b1e65

Browse files
committed
Don't override a user-specified LLVM_CONFIG
1 parent 8cc236d commit e4b1e65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/libdetect.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module LibDetect
1515
ENV['LIBCLANG'] = DARWIN_LIBCLANG
1616
when /linux/
1717
prog = 'llvm-config'
18-
if find_executable(prog)
18+
if find_executable(prog) and not ENV.has_key?('LLVM_CONFIG')
1919
ENV['LLVM_CONFIG'] = prog
2020
end
2121
end

0 commit comments

Comments
 (0)