1
1
mirror of https://github.com/henrydcase/pqc.git synced 2024-11-22 23:48:58 +00:00

Use cc -E instead of cpp

This commit is contained in:
Thom Wiggers 2019-04-05 10:31:31 +02:00
parent 9a6787c872
commit bfa8589f96
No known key found for this signature in database
GPG Key ID: 001BB0A7CE26E363

View File

@ -37,7 +37,9 @@ def check_char(implementation):
ast = pycparser.parse_file(
os.path.join(implementation.path(), fname),
use_cpp=True,
cpp_path='cc',
cpp_args=[
'-E',
'-std=c99',
'-nostdinc', # pycparser cannot deal with e.g. __attribute__
'-I{}'.format(os.path.join(tdir, "../common")),