From 1003bbfebd11bc06900bf316170b0d7a3f81bcfb Mon Sep 17 00:00:00 2001 From: gibbz00 Date: Thu, 6 Nov 2025 15:36:37 +0100 Subject: fix(asn1c): include generated output as system headers Prevents clang-tidy from reporting lint errors in them. --- xmake/rules/asn1c/xmake.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xmake/rules/asn1c/xmake.lua b/xmake/rules/asn1c/xmake.lua index 873492ba1..f0eae280f 100644 --- a/xmake/rules/asn1c/xmake.lua +++ b/xmake/rules/asn1c/xmake.lua @@ -34,8 +34,8 @@ rule("asn1c") batchcmds:add_depfiles(sourcefile_asn1) batchcmds:set_depcache(target:dependfile(sourcefile_asn1)) - -- add includedirs - target:add("includedirs", sourcefile_dir) + -- add sysincludedirs + target:add("sysincludedirs", sourcefile_dir) end) on_buildcmd_file(function (target, batchcmds, sourcefile_asn1, opt) @@ -44,7 +44,7 @@ rule("asn1c") local sourcefile_dir = path.join(target:autogendir(), "rules", "asn1c") for _, sourcefile in ipairs(os.files(path.join(sourcefile_dir, "*.c|converter-*.c"))) do local objectfile = target:objectfile(sourcefile) - batchcmds:compile(sourcefile, objectfile, {configs = {includedirs = sourcefile_dir}}) + batchcmds:compile(sourcefile, objectfile, {configs = {sysincludedirs = sourcefile_dir}}) table.insert(target:objectfiles(), objectfile) batchcmds:add_depfiles(sourcefile) end -- cgit v1.3.1