diff options
| author | ruki <[email protected]> | 2023-07-10 23:13:32 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-07-10 23:13:32 +0800 |
| commit | b3627c504fb1c65f829f92c5cd709b23a6776895 (patch) | |
| tree | 2e96f03f1adf9b3d7d3798ae447e8fc46a8bfba4 | |
| parent | 5aa6057ae4e8c107e248fe6d213061bac03e5ebd (diff) | |
remove links for swift-frontend
| -rw-r--r-- | xmake/modules/core/tools/swift_frontend.lua | 37 |
1 files changed, 1 insertions, 36 deletions
diff --git a/xmake/modules/core/tools/swift_frontend.lua b/xmake/modules/core/tools/swift_frontend.lua index e6c720aad..25cb08ade 100644 --- a/xmake/modules/core/tools/swift_frontend.lua +++ b/xmake/modules/core/tools/swift_frontend.lua @@ -57,15 +57,6 @@ function init(self) }) end --- make the strip flag -function nf_strip(self, level) - local maps = { - debug = "-Xlinker -S" - , all = "-Xlinker -s" - } - return maps[level] -end - -- make the symbol flag function nf_symbol(self, level) local maps = { @@ -139,35 +130,9 @@ function nf_frameworkdir(self, frameworkdir) return {"-F", frameworkdir} end --- make the link flag -function nf_link(self, lib) - return "-l" .. lib -end - --- make the syslink flag -function nf_syslink(self, lib) - return nf_link(self, lib) -end - --- make the linkdir flag -function nf_linkdir(self, dir) - return {"-L", dir} -end - --- make the link arguments list -function linkargv(self, objectfiles, targetkind, targetfile, flags) - return self:program(), table.join("-o", targetfile, objectfiles, flags) -end - --- link the target file -function link(self, objectfiles, targetkind, targetfile, flags) - os.mkdir(path.directory(targetfile)) - os.runv(linkargv(self, objectfiles, targetkind, targetfile, flags)) -end - -- make the compile arguments list function compargv(self, sourcefile, objectfile, flags) - return self:program(), table.join("-c", flags, "-o", objectfile, sourcefile) + return self:program(), table.join("-c", flags, "-o", objectfile, "-primary-file", sourcefile) end -- compile the source file |
