diff options
Diffstat (limited to 'giscanner/scannermain.py')
-rw-r--r-- | giscanner/scannermain.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/giscanner/scannermain.py b/giscanner/scannermain.py index 957ba0b7..ad2618b9 100644 --- a/giscanner/scannermain.py +++ b/giscanner/scannermain.py @@ -214,6 +214,9 @@ match the namespace prefix.""") parser.add_option("", "--filelist", action="store", dest="filelist", default=[], help="file containing headers and sources to be scanned") + parser.add_option("", "--compiler", + action="store", dest="compiler", default=None, + help="the C compiler to use internally") group = get_preprocessor_option_group(parser) parser.add_option_group(group) @@ -455,6 +458,7 @@ def create_source_scanner(options, args): # Run the preprocessor, tokenize and construct simple # objects representing the raw C symbols ss = SourceScanner() + ss.set_compiler(options.compiler) ss.set_cpp_options(options.cpp_includes, options.cpp_defines, options.cpp_undefines, |