From bfa8589f968eec5add0b9f8286cf3872773781d8 Mon Sep 17 00:00:00 2001 From: Thom Wiggers Date: Fri, 5 Apr 2019 10:31:31 +0200 Subject: [PATCH] Use cc -E instead of cpp --- test/test_char.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/test_char.py b/test/test_char.py index 703e1b17..29a0b857 100644 --- a/test/test_char.py +++ b/test/test_char.py @@ -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")),