cuda.eclass: Use debug-print-function everywhere
authorJustin Lecher <jlec@gentoo.org>
Wed, 27 Jan 2016 14:27:37 +0000 (15:27 +0100)
committerJustin Lecher <jlec@gentoo.org>
Thu, 28 Jan 2016 07:48:10 +0000 (08:48 +0100)
Signed-off-by: Justin Lecher <jlec@gentoo.org>
eclass/cuda.eclass

index ede58f4726df0a24785ce5b2dfd7ce57fe2ba15a..e36d4ca1db9bba0f8e729991bb51b5f8232853a2 100644 (file)
@@ -42,6 +42,8 @@ if [[ -z ${_CUDA_ECLASS} ]]; then
 # -> --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
@@ -98,6 +100,8 @@ cuda_gccdir() {
 # 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"
@@ -116,6 +120,8 @@ cuda_sanitize() {
 # @DESCRIPTION:
 # Call cuda_src_prepare for EAPIs not supporting src_prepare
 cuda_pkg_setup() {
+       debug-print-function ${FUNCNAME} "$@"
+
        cuda_src_prepare
 }
 
@@ -123,6 +129,8 @@ cuda_pkg_setup() {
 # @DESCRIPTION:
 # Sanitise and export NVCCFLAGS by default
 cuda_src_prepare() {
+       debug-print-function ${FUNCNAME} "$@"
+
        cuda_sanitize
 }