diff options
| author | ruki <[email protected]> | 2018-11-08 22:51:57 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2018-11-08 11:11:44 +0800 |
| commit | da5ba0608b0db673077d30951b7227ed42a69dca (patch) | |
| tree | 8b0968bf8cf6cd33db6704c615fd2c1db18abb7e /xmake/modules/core/tools/rustc.lua | |
| parent | a1c8f03dc30ad086a2116458ae58ec6e2eddce1b (diff) | |
add syslinks api
Diffstat (limited to 'xmake/modules/core/tools/rustc.lua')
| -rw-r--r-- | xmake/modules/core/tools/rustc.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/xmake/modules/core/tools/rustc.lua b/xmake/modules/core/tools/rustc.lua index 8df967401..537175c93 100644 --- a/xmake/modules/core/tools/rustc.lua +++ b/xmake/modules/core/tools/rustc.lua @@ -93,6 +93,11 @@ function nf_linkdir(self, dir) return "-L" .. os.args(dir) end +-- make the link flag +function nf_link(self, lib) + return "-l" .. lib +end + -- make the build arguments list function buildargv(self, sourcefiles, targetkind, targetfile, flags) return self:program(), table.join(flags, "-o", targetfile, sourcefiles) |
