mirror of
https://github.com/rubyjs/libv8
synced 2023-03-27 23:21:48 -04:00
Honor the CXX env variable when looking for C++ compiler.
This is useful when, for instance, a build fails with gcc 4.8. See https://code.google.com/p/v8/issues/detail?id=2149
This commit is contained in:
parent
6054e0fac7
commit
f562dc57b9
1 changed files with 2 additions and 1 deletions
|
@ -4,7 +4,8 @@ module Libv8
|
|||
|
||||
def compiler
|
||||
unless defined?(@compiler)
|
||||
cc = check_gcc_compiler "g++"
|
||||
cc = check_gcc_compiler ENV['CXX']
|
||||
cc ||= check_gcc_compiler "g++"
|
||||
|
||||
# Check alternative GCC names
|
||||
# These are common on BSD's after
|
||||
|
|
Loading…
Add table
Reference in a new issue