1
0
Fork 0
mirror of https://github.com/rubyjs/libv8 synced 2023-03-27 23:21:48 -04:00

Pass clang=1 option to make when using clang

This commit is contained in:
ignisf 2014-06-17 15:01:48 +03:00
parent 2107fd7d8b
commit e2fd504f6c

View file

@ -30,6 +30,9 @@ module Libv8
# default.
flags << "ARFLAGS.target=crs"
# Pass clang=1 to GYP as noted in wiki
# https://code.google.com/p/v8/wiki/BuildingWithGYP#Clang_+_make
flags << 'GYP_DEFINES="clang=1"' if @compiler.is_a? Compiler::Clang
# Solaris / Smart OS requires additional -G flag to use with -fPIC
flags << "CFLAGS=-G" if @compiler.target =~ /solaris/