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:
parent
2107fd7d8b
commit
e2fd504f6c
1 changed files with 3 additions and 0 deletions
|
@ -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/
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue