Skip to content

Commit

Permalink
Disable de-virtualization in sh-tests for gcc-4.9+ (#53)
Browse files Browse the repository at this point in the history
* Update AMBuilder
* Re-add gcc6 to .travis.yml
* right; 馃悕
* where Travis-CI?
* fix whitespace problems w/ travis.yml
  • Loading branch information
KyleSanderson committed Jul 31, 2018
1 parent e573602 commit 625c59d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .travis.yml
Expand Up @@ -80,6 +80,15 @@ matrix:
packages: ['clang-5.0', 'lib32stdc++6', 'lib32z1-dev', 'libc6-dev-i386', 'linux-libc-dev', 'g++-multilib']
env: ['MATRIX_EVAL="CC=clang-5.0 && CXX=clang++-5.0"']

- os: linux
sudo: false
language: cpp
addons:
apt:
sources: ['ubuntu-toolchain-r-test']
packages: ['g++-6', 'g++-6-multilib', 'lib32stdc++6', 'lib32z1-dev', 'libc6-dev-i386', 'linux-libc-dev', 'g++-multilib']
env: ['MATRIX_EVAL="CC=gcc-6 && CXX=g++-6"']

allow_failures:
- env: MATRIX_EVAL="CC=clang-3.7 && CXX=clang++-3.7"
- env: MATRIX_EVAL="CC=clang-3.9 && CXX=clang++-3.9"
Expand Down
2 changes: 2 additions & 0 deletions core/sourcehook/test/AMBuilder
Expand Up @@ -7,6 +7,8 @@ for arch in MMS.archs:
binary.compiler.cxxincludes += [
os.path.join(builder.sourcePath, 'core', 'sourcehook'),
]
if binary.compiler.version >= 'gcc-4.9':
binary.compiler.cxxflags += ['-fno-devirtualize']
if binary.compiler.version >= 'clang-2.9' or binary.compiler.version >= 'apple-clang-3.0':
binary.compiler.cxxflags += ['-Wno-null-dereference']

Expand Down
1 change: 1 addition & 0 deletions pushbuild.txt
Expand Up @@ -35,3 +35,4 @@ dvander is one million ladies tall today...
Your tier1 tower is under attack..
Christmas!
is Skinny Pete any relation to Sneaky Pete???
where Travis?

0 comments on commit 625c59d

Please sign in to comment.