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 14, 2023
1 parent 14c8958 commit 65b34ea
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ci/build_cpp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ fi
mkdir -p "${build_dir}"
pushd "${build_dir}"

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

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

0 comments on commit 65b34ea

Please sign in to comment.