Skip to content
This repository was archived by the owner on Nov 27, 2017. It is now read-only.

Commit 94df100

Browse files
committed
test: Determine the correct compiler for Linuxbrew
Closes #1035.
1 parent 75395f4 commit 94df100

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Library/Homebrew/test.rb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,15 @@
1515
error_pipe.fcntl(Fcntl::F_SETFD, Fcntl::FD_CLOEXEC)
1616

1717
ENV.extend(Stdenv)
18-
ENV.setup_build_environment
18+
formula = ARGV.formulae.first
19+
if OS.linux?
20+
ENV.setup_build_environment(formula)
21+
else
22+
ENV.setup_build_environment
23+
end
1924

2025
trap("INT", old_trap)
2126

22-
formula = ARGV.formulae.first
2327
formula.extend(Homebrew::Assertions)
2428
formula.extend(Debrew::Formula) if ARGV.debug?
2529

0 commit comments

Comments
 (0)