From 77a456924eba9d40eb54c6c8704cb9832ef3499b Mon Sep 17 00:00:00 2001 From: Kellen Sunderland Date: Tue, 18 Sep 2018 12:00:53 -0700 Subject: [PATCH] [MXNET-953] Use gcc8 via cmake options Use CMake to specify the compiler used for ASAN. This is more portable and doesn't rely on env vars. --- ci/docker/runtime_functions.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/docker/runtime_functions.sh b/ci/docker/runtime_functions.sh index f0a7e21c5095..0cc4fbe06bd7 100755 --- a/ci/docker/runtime_functions.sh +++ b/ci/docker/runtime_functions.sh @@ -341,11 +341,11 @@ build_ubuntu_cpu_cmake_asan() { pushd . cd /work/build - export CC="gcc-8" - export CXX="g++-8" cmake \ -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \ -DCMAKE_C_COMPILER_LAUNCHER=ccache \ + -DCMAKE_CXX_COMPILER=/usr/bin/g++-8 \ + -DCMAKE_CC_COMPILER=/usr/bin/gcc-8 \ -DUSE_CUDA=OFF \ -DUSE_MKL_IF_AVAILABLE=OFF \ -DUSE_OPENMP=OFF \