aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlexa Bilaniuk <obilaniu@gmail.com>2021-02-15 00:56:01 -0500
committerNirbheek Chauhan <nirbheek@centricular.com>2021-02-20 15:38:08 +0530
commit3b274e11c196c9101a6066e59dbbc37bcf06d7a5 (patch)
treee264f392188d7ff30ad78bd290aeec91cfdc2e35
parent0097d3d5da37ef332c20b0cf66729f7be21f04a2 (diff)
downloadmeson-3b274e11c196c9101a6066e59dbbc37bcf06d7a5.zip
meson-3b274e11c196c9101a6066e59dbbc37bcf06d7a5.tar.gz
meson-3b274e11c196c9101a6066e59dbbc37bcf06d7a5.tar.bz2
Add default debug flags for two configurations to NVCC.
-rw-r--r--mesonbuild/compilers/compilers.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/compilers/compilers.py b/mesonbuild/compilers/compilers.py
index 1872253..8171758 100644
--- a/mesonbuild/compilers/compilers.py
+++ b/mesonbuild/compilers/compilers.py
@@ -175,8 +175,8 @@ class CompileCheckMode(enum.Enum):
cuda_buildtype_args = {'plain': [],
- 'debug': [],
- 'debugoptimized': [],
+ 'debug': ['-g', '-G'],
+ 'debugoptimized': ['-g', '-lineinfo'],
'release': [],
'minsize': [],
'custom': [],