diff options
| author | gibbz00 <[email protected]> | 2025-11-06 15:36:37 +0100 |
|---|---|---|
| committer | gibbz00 <[email protected]> | 2025-11-06 15:36:37 +0100 |
| commit | 1003bbfebd11bc06900bf316170b0d7a3f81bcfb (patch) | |
| tree | 68e306234aedb4405869acb40d6a3a180b434b01 /xmake | |
| parent | 12f9fb3c6b097f51329e2dcce0b2136b5235d323 (diff) | |
fix(asn1c): include generated output as system headers
Prevents clang-tidy from reporting lint errors in them.
Diffstat (limited to 'xmake')
| -rw-r--r-- | xmake/rules/asn1c/xmake.lua | 6 |
1 files 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 |
