Skip to content

Commit

Permalink
Prefer ENV.cc to ENV["CC"]
Browse files Browse the repository at this point in the history
  • Loading branch information
jacknagel committed Dec 15, 2014
1 parent 6ae3ff5 commit f9b6473
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Formula/gringo.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def install
ENV.libcxx
inreplace "SConstruct",
"env['CXX'] = 'g++'",
"env['CXX'] = '#{ENV['CXX']}'"
"env['CXX'] = '#{ENV.cxx}'"
scons "--build-dir=release", "gringo", "clingo"
bin.install "build/release/gringo", "build/release/clingo"
end
Expand Down
2 changes: 1 addition & 1 deletion Formula/libb2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def install
}
}
EOS
system ENV["CC"], "blake2test.c", "-lb2", "-o", "b2test"
system ENV.cc, "blake2test.c", "-lb2", "-o", "b2test"
system "./b2test"
end
end
2 changes: 1 addition & 1 deletion Formula/pypy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def install

Dir.chdir "pypy/goal" do
system "python", buildpath/"rpython/bin/rpython",
"-Ojit", "--shared", "--cc", ENV["CC"], "--translation-verbose",
"-Ojit", "--shared", "--cc", ENV.cc, "--translation-verbose",
"--make-jobs", ENV.make_jobs, "targetpypystandalone.py"
system "install_name_tool", "-change", "libpypy-c.dylib", libexec/"lib/libpypy-c.dylib", "pypy-c"
system "install_name_tool", "-id", opt_libexec/"lib/libpypy-c.dylib", "libpypy-c.dylib"
Expand Down
2 changes: 1 addition & 1 deletion Formula/pypy3.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def install

Dir.chdir "pypy/goal" do
system "python", buildpath/"rpython/bin/rpython",
"-Ojit", "--shared", "--cc", ENV["CC"], "--translation-verbose",
"-Ojit", "--shared", "--cc", ENV.cc, "--translation-verbose",
"--make-jobs", ENV.make_jobs, "targetpypystandalone.py"
system "install_name_tool", "-change", "libpypy-c.dylib", libexec/"lib/libpypy3-c.dylib", "pypy-c"
system "install_name_tool", "-id", opt_libexec/"lib/libpypy3-c.dylib", "libpypy-c.dylib"
Expand Down

0 comments on commit f9b6473

Please sign in to comment.