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

Merge pull request #76 from sqreen/feature/darwin17

Fix build on macOS High Sierra (Darwin 17)
This commit is contained in:
Sam 2018-02-13 23:45:31 -05:00 committed by GitHub
commit 7be251df99
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View file

@ -7,6 +7,9 @@ rvm:
- 2.5.0
matrix:
include:
- rvm: 2.4.0
os: osx
osx_image: xcode9.2
- rvm: 2.4.0
os: osx
osx_image: xcode8.2

View file

@ -9,6 +9,7 @@ $CPPFLAGS += " -rdynamic" unless $CPPFLAGS.split.include? "-rdynamic"
$CPPFLAGS += " -fPIC" unless $CPPFLAGS.split.include? "-rdynamic" or RUBY_PLATFORM =~ /darwin/
$CPPFLAGS += " -std=c++0x"
$CPPFLAGS += " -fpermissive"
$CPPFLAGS += " -Wno-reserved-user-defined-literal" if RUBY_PLATFORM =~ /darwin/
$LDFLAGS.insert 0, " -stdlib=libstdc++ " if RUBY_PLATFORM =~ /darwin/