diff options
Diffstat (limited to 'xmake/modules')
| -rw-r--r-- | xmake/modules/core/tools/swift_frontend.lua | 10 | ||||
| -rw-r--r-- | xmake/modules/core/tools/swiftc.lua | 10 |
2 files changed, 20 insertions, 0 deletions
diff --git a/xmake/modules/core/tools/swift_frontend.lua b/xmake/modules/core/tools/swift_frontend.lua index 002e323d7..66a0c488b 100644 --- a/xmake/modules/core/tools/swift_frontend.lua +++ b/xmake/modules/core/tools/swift_frontend.lua @@ -110,6 +110,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} 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} |
