summaryrefslogtreecommitdiff
path: root/giscanner/ccompiler.py
diff options
context:
space:
mode:
Diffstat (limited to 'giscanner/ccompiler.py')
-rw-r--r--giscanner/ccompiler.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/giscanner/ccompiler.py b/giscanner/ccompiler.py
index 5db04535..24dcbcbf 100644
--- a/giscanner/ccompiler.py
+++ b/giscanner/ccompiler.py
@@ -34,6 +34,10 @@ from distutils.sysconfig import customize_compiler
from . import utils
+# Flags that retain macros in preprocessed output.
+FLAGS_RETAINING_MACROS = ['-g3', '-ggdb3', '-gstabs3', '-gcoff3', '-gxcoff3', '-gvms3']
+
+
class CCompiler(object):
compiler_cmd = ''
@@ -376,6 +380,6 @@ class CCompiler(object):
else:
# We expect the preprocessor to remove macros. If debugging is turned
# up high enough that won't happen, so don't add those flags. Bug #720504
- if option not in ['-g3', '-ggdb3', '-gstabs3', '-gcoff3', '-gxcoff3', '-gvms3']:
+ if option not in FLAGS_RETAINING_MACROS:
other_options.append(option)
return (includes, macros, other_options)