diff options
| author | ruki <[email protected]> | 2025-11-07 10:06:07 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-11-07 10:06:07 +0800 |
| commit | 596e7569d045ac73807b7b673c9bdf1c7490d24e (patch) | |
| tree | 30d5a2934576bcd92fb58d72b9e82799230af357 | |
| parent | 268d1b99b79445928701de361693f5654c931e5e (diff) | |
| parent | 1003bbfebd11bc06900bf316170b0d7a3f81bcfb (diff) | |
Merge pull request #7002 from gibbz00/isystem_requires
fix(asn1c): include generated output as system headers
| -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 |
