summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2023-03-23 17:39:26 +0100
committerUlrich Müller <ulm@gentoo.org>2023-03-26 13:33:30 +0200
commit7201ffdbf43800efbd2f081986322770a95965f3 (patch)
treea59988c80082b3e7804e615fb445d364ac218311 /eclass
parentcmake.eclass: Quote argument of ":" command (diff)
downloadgentoo-7201ffdbf43800efbd2f081986322770a95965f3.tar.gz
gentoo-7201ffdbf43800efbd2f081986322770a95965f3.tar.bz2
gentoo-7201ffdbf43800efbd2f081986322770a95965f3.zip
cuda.eclass: Quote argument of ":" command
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223 Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/cuda.eclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/eclass/cuda.eclass b/eclass/cuda.eclass
index d885e77d0616..5f3f0c3af37d 100644
--- a/eclass/cuda.eclass
+++ b/eclass/cuda.eclass
@@ -28,12 +28,12 @@ inherit flag-o-matic toolchain-funcs
# @DESCRIPTION:
# nvcc compiler flags (see nvcc --help), which should be used like
# CFLAGS for c compiler
-: ${NVCCFLAGS:=-O2}
+: "${NVCCFLAGS:=-O2}"
# @ECLASS_VARIABLE: CUDA_VERBOSE
# @DESCRIPTION:
# Being verbose during compilation to see underlying commands
-: ${CUDA_VERBOSE:=true}
+: "${CUDA_VERBOSE:=true}"
# @FUNCTION: cuda_gccdir
# @USAGE: [-f]