diff options
-rw-r--r-- | giscanner/scannermain.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/giscanner/scannermain.py b/giscanner/scannermain.py index 64575557..1d39ab84 100644 --- a/giscanner/scannermain.py +++ b/giscanner/scannermain.py @@ -461,7 +461,8 @@ 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) + if hasattr(options, 'compiler') and options.compiler: + ss.set_compiler(options.compiler) ss.set_cpp_options(options.cpp_includes, options.cpp_defines, options.cpp_undefines, |