Enable LTO for clang

Enable link-time optimization in the Makefile when compiling with clang.
Also update travis.yml to use clang++-5.0 and llvm-5.0-dev.

No functional change.
This commit is contained in:
syzygy1
2018-02-06 00:43:29 +01:00
committed by Stéphane Nicolet
parent 414a3e6ee3
commit ef61886332
2 changed files with 13 additions and 18 deletions
+4 -3
View File
@@ -18,11 +18,12 @@ matrix:
compiler: clang
addons:
apt:
sources: ['ubuntu-toolchain-r-test']
packages: ['clang', 'g++-multilib', 'valgrind', 'expect']
sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-trusty-5.0']
packages: ['clang-5.0', 'llvm-5.0-dev', 'g++-multilib', 'valgrind', 'expect']
env:
- COMPILER=clang++
- COMPILER=clang++-5.0
- COMP=clang
- LDFLAGS=-fuse-ld=gold
- os: osx
compiler: gcc