Change Travis to use gold linker. (#143)

Project: http://git-wip-us.apache.org/repos/asf/incubator-quickstep/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-quickstep/commit/ff202779
Tree: http://git-wip-us.apache.org/repos/asf/incubator-quickstep/tree/ff202779
Diff: http://git-wip-us.apache.org/repos/asf/incubator-quickstep/diff/ff202779

Branch: refs/heads/master
Commit: ff202779dca86c025f054de45581e5714df48868
Parents: 6dba6e1
Author: Hakan Memisoglu <[email protected]>
Authored: Thu Apr 14 22:37:25 2016 -0500
Committer: Jignesh Patel <[email protected]>
Committed: Thu Apr 14 22:37:25 2016 -0500

----------------------------------------------------------------------
 .travis.yml | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-quickstep/blob/ff202779/.travis.yml
----------------------------------------------------------------------
diff --git a/.travis.yml b/.travis.yml
index 16bb6fb..4e10e2a 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -32,6 +32,7 @@ install:
       export CC="clang-3.7";
       export CXX="clang++-3.7";
     fi
+  - export CLINKER=`which gold`
   - export DEBUG_FLAGS="-g0";
   - export RELEASE_FLAGS="-O0 -DNDEBUG";
   - export LINKER_FLAGS="-s"
@@ -39,6 +40,7 @@ install:
 before_script:
   - $CC --version
   - $CXX --version
+  - $CLINKER --version
   - (cd build &&
      cmake -D CMAKE_BUILD_TYPE=$BUILD_TYPE
            -D CMAKE_C_FLAGS_DEBUG="$DEBUG_FLAGS"
@@ -48,6 +50,7 @@ before_script:
            -D CMAKE_EXE_LINKER_FLAGS="$LINKER_FLAGS"
            -D CMAKE_C_COMPILER=$CC
            -D CMAKE_CXX_COMPILER=$CXX
+           -D CMAKE_LINKER=$CLINKER
            -D USE_TCMALLOC=0
            -D VECTOR_COPY_ELISION_LEVEL=$VECTOR_COPY_ELISION_LEVEL ..)
 
@@ -77,6 +80,7 @@ addons:
       - gcc-5
       - g++-5
       - clang-3.7
+      - binutils-gold
       - libprotobuf-dev
       - protobuf-compiler
       - python-networkx

Reply via email to