History

python/lib/gen_external.py: always show errors

Paul Brossier committed 8 years ago

Commit 31742b81 parent 77d93701 file · +2 −2Browse files

Showing the changes to python (1 of 1 file). Show all

Unified · Split

python/lib/gen_external.py+2−2
@@ -105,10 +105,10 @@ def get_c_declarations(header=header, usedouble=False): · 104 unmodified lines
105105 assert proc, 'Proc was none'
106106 cpp_output = proc.stdout.read()
107107 err_output = proc.stderr.read()
108+ if err_output:
109+ print("Warning: preprocessor produced errors or warnings:\n%s" % err_output)
108110 if not cpp_output:
109111 raise Exception("preprocessor output is empty:\n%s" % err_output)
110− elif err_output:
111− print("Warning: preprocessor produced warnings:\n%s" % err_output)
112112 if not isinstance(cpp_output, list):
113113 cpp_output = [l.strip() for l in cpp_output.decode('utf8').split('\n')]
114114

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t