Skip to content

Commit

Permalink
#2082: Update build script to apply compiler version for nvcc
Browse files Browse the repository at this point in the history
  • Loading branch information
thearusable committed Mar 24, 2023
1 parent 90b01e8 commit 3f1b6cd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ci/build_cpp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ fi
mkdir -p "${build_dir}"
pushd "${build_dir}"

# Match `nvcc_wrapper` and also a path ending with 'nvcc_wrapper'
case $CXX in
*nvcc_wrapper)
NVCC_WRAPPER_DEFAULT_COMPILER="$(which g++-"$(echo "${HOST_COMPILER}" | cut -d- -f2)")" \
&& export NVCC_WRAPPER_DEFAULT_COMPILER;;
esac

if test -d "detector"
then
rm -Rf detector
Expand Down

0 comments on commit 3f1b6cd

Please sign in to comment.