only install/enable binutils gold and llvm-ar when building in Release
This commit is contained in:
parent
f6f7a9290f
commit
da6ca640a7
11
.travis.yml
11
.travis.yml
@ -140,9 +140,14 @@ before_install:
|
|||||||
export CXXCOMPILER='clang++'
|
export CXXCOMPILER='clang++'
|
||||||
./third_party/mason/mason install clang++ ${CLANG_VERSION}
|
./third_party/mason/mason install clang++ ${CLANG_VERSION}
|
||||||
export PATH=$(./third_party/mason/mason prefix clang++ ${CLANG_VERSION})/bin:${PATH}
|
export PATH=$(./third_party/mason/mason prefix clang++ ${CLANG_VERSION})/bin:${PATH}
|
||||||
export CMAKE_EXTRA="-DCMAKE_AR=$(which llvm-ar) -DCMAKE_RANLIB=$(which llvm-ranlib)"
|
# we only enable lto for release builds
|
||||||
./third_party/mason/mason install binutils 2.27
|
# and therefore don't need to us ld.gold or llvm tools for linking
|
||||||
export PATH=$(./third_party/mason/mason prefix binutils 2.27)/bin:${PATH}
|
# for debug builds
|
||||||
|
if [[ ${BUILD_TYPE} == 'Release' ]]; then
|
||||||
|
export CMAKE_EXTRA="-DCMAKE_AR=$(which llvm-ar) -DCMAKE_RANLIB=$(which llvm-ranlib)"
|
||||||
|
./third_party/mason/mason install binutils 2.27
|
||||||
|
export PATH=$(./third_party/mason/mason prefix binutils 2.27)/bin:${PATH}
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
- ccache --max-size=256M # limiting the cache's size to roughly the previous job's object sizes
|
- ccache --max-size=256M # limiting the cache's size to roughly the previous job's object sizes
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user