diff options
| author | Arthur LAURENT <[email protected]> | 2025-10-26 16:40:28 +0100 |
|---|---|---|
| committer | Arthur LAURENT <[email protected]> | 2025-10-26 17:23:16 +0100 |
| commit | 49effcb3896dbef158e375ef0524ab1f09ce6b15 (patch) | |
| tree | 812a6fa447062ea8676f5fcb54a244fa66e24e81 /xmake/modules/core/tools/swiftc.lua | |
| parent | 716bc9fe22b091f57765d894429a7f630e69420e (diff) | |
feat(swift) support add_includedirs / add_sysincludedirs for swiftc and swift-frontend
Diffstat (limited to 'xmake/modules/core/tools/swiftc.lua')
| -rw-r--r-- | xmake/modules/core/tools/swiftc.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/xmake/modules/core/tools/swiftc.lua b/xmake/modules/core/tools/swiftc.lua index c19072fd7..109d461d2 100644 --- a/xmake/modules/core/tools/swiftc.lua +++ b/xmake/modules/core/tools/swiftc.lua @@ -120,6 +120,16 @@ function nf_vectorext(self, extension) return maps[extension] end +-- make the includedir flag +function nf_includedir(self, includedir) + return "-I" .. includedir +end + +-- make the sysincludedir flag +function nf_sysincludedir(self, dir) + return nf_includedir(self, dir) +end + -- make the define flag function nf_define(self, macro) return {"-Xcc", "-D" .. macro} |
