1
0
Fork 0
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:
Joris van Rooij 2013-06-18 16:24:22 +02:00
parent 6054e0fac7
commit f562dc57b9

View file

@ -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