mirror of
https://github.com/rubyjs/therubyracer
synced 2023-03-27 23:21:42 -04:00
Merge pull request #355 from cowboyd/limit-specs-to-c-and-clang
only run C spec compiled with Clang
This commit is contained in:
commit
d1dd01daa1
2 changed files with 26 additions and 3 deletions
24
.travis.yml
24
.travis.yml
|
@ -1,4 +1,4 @@
|
|||
cache: bundler
|
||||
#cache: bundler
|
||||
rvm:
|
||||
- 2.1.0
|
||||
- 2.0.0
|
||||
|
@ -6,9 +6,29 @@ rvm:
|
|||
- 1.9.2
|
||||
- 1.8.7
|
||||
- rbx-2.2.3
|
||||
matrix:
|
||||
allow_failures:
|
||||
- rvm: 1.9.3
|
||||
- rvm: 1.9.2
|
||||
- rvm: 1.8.7
|
||||
- rvm: rbx-2.2.3
|
||||
env:
|
||||
- CXX=g++-4.8
|
||||
- CXX=clang++
|
||||
notifications:
|
||||
recipients:
|
||||
- cowboyd@thefrontside.net
|
||||
before_install:
|
||||
- gem update --system 2.1.11
|
||||
script: bundle exec rake compile spec
|
||||
script:
|
||||
- bundle exec rake compile
|
||||
- bundle exec rspec spec/c
|
||||
sudo: false
|
||||
addons:
|
||||
apt:
|
||||
sources:
|
||||
- ubuntu-toolchain-r-test
|
||||
packages:
|
||||
- gcc-4.8
|
||||
- g++-4.8
|
||||
- clang
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
require 'mkmf'
|
||||
cxx = RbConfig::MAKEFILE_CONFIG['CXX'] = ENV['CXX'] if ENV['CXX']
|
||||
|
||||
have_library('pthread')
|
||||
have_library('objc') if RUBY_PLATFORM =~ /darwin/
|
||||
|
@ -9,7 +10,9 @@ $CPPFLAGS += " -rdynamic" unless $CPPFLAGS.split.include? "-rdynamic" unless RUB
|
|||
$CPPFLAGS += " -fPIC" unless $CPPFLAGS.split.include? "-rdynamic" or RUBY_PLATFORM =~ /darwin/
|
||||
$CPPFLAGS += " -std=c++11"
|
||||
|
||||
$LDFLAGS += " -stdlib=libstdc++"
|
||||
if cxx =~ /clang/
|
||||
$LDFLAGS += " -stdlib=libstdc++"
|
||||
end
|
||||
|
||||
CONFIG['LDSHARED'] = '$(CXX) -shared' unless RUBY_PLATFORM =~ /darwin/
|
||||
if CONFIG['warnflags']
|
||||
|
|
Loading…
Add table
Reference in a new issue