Skip to content

Commit 09672a0

Browse files
committed
fix: some cases where the correct stdint.h header file may not be found
Signed-off-by: HaoranJiang <halfsweet@halfsweet.cn>
1 parent 44e7092 commit 09672a0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/generate_native_sdk/parse_c_decl.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,7 @@ def parse_file(filename, filenames, func, internal_sdk_build=False, compiler_fla
265265
if not os.path.isfile(filename):
266266
raise Exception("Invalid filename: " + filename)
267267

268+
args.append("-ffreestanding")
268269
index = clang.cindex.Index.create()
269270
tu = index.parse(filename, args=args, options=clang.cindex.TranslationUnit.PARSE_DETAILED_PROCESSING_RECORD)
270271

0 commit comments

Comments
 (0)