# -> --compiler-bindir="/usr/x86_64-pc-linux-gnu/gcc-bin/4.6.3"
# @CODE
cuda_gccdir() {
+ debug-print-function ${FUNCNAME} "$@"
+
local gcc_bindir ver args="" flag ret
# Currently we only support the gnu compiler suite
# Correct NVCCFLAGS by adding the necessary reference to gcc bindir and
# passing CXXFLAGS to underlying compiler without disturbing nvcc.
cuda_sanitize() {
+ debug-print-function ${FUNCNAME} "$@"
+
local rawldflags=$(raw-ldflags)
# Be verbose if wanted
[[ "${CUDA_VERBOSE}" == true ]] && NVCCFLAGS+=" -v"
# @DESCRIPTION:
# Call cuda_src_prepare for EAPIs not supporting src_prepare
cuda_pkg_setup() {
+ debug-print-function ${FUNCNAME} "$@"
+
cuda_src_prepare
}
# @DESCRIPTION:
# Sanitise and export NVCCFLAGS by default
cuda_src_prepare() {
+ debug-print-function ${FUNCNAME} "$@"
+
cuda_sanitize
}