Use cc -E instead of cpp
This commit is contained in:
parent
9a6787c872
commit
bfa8589f96
@ -37,7 +37,9 @@ def check_char(implementation):
|
|||||||
ast = pycparser.parse_file(
|
ast = pycparser.parse_file(
|
||||||
os.path.join(implementation.path(), fname),
|
os.path.join(implementation.path(), fname),
|
||||||
use_cpp=True,
|
use_cpp=True,
|
||||||
|
cpp_path='cc',
|
||||||
cpp_args=[
|
cpp_args=[
|
||||||
|
'-E',
|
||||||
'-std=c99',
|
'-std=c99',
|
||||||
'-nostdinc', # pycparser cannot deal with e.g. __attribute__
|
'-nostdinc', # pycparser cannot deal with e.g. __attribute__
|
||||||
'-I{}'.format(os.path.join(tdir, "../common")),
|
'-I{}'.format(os.path.join(tdir, "../common")),
|
||||||
|
Loading…
Reference in New Issue
Block a user