summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/rustc.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2021-11-13 13:52:57 +0800
committerruki <[email protected]>2021-11-13 13:52:57 +0800
commit80326fdfb7fa838d3dc79aa24c9dcc01519b173b (patch)
tree0c2461c8dc9ec446af28274983e11fe508cef200 /xmake/modules/core/tools/rustc.lua
parent6b684d5cc448124c31a51fff71e4043667677a57 (diff)
add edition for rust
Diffstat (limited to 'xmake/modules/core/tools/rustc.lua')
-rw-r--r--xmake/modules/core/tools/rustc.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/xmake/modules/core/tools/rustc.lua b/xmake/modules/core/tools/rustc.lua
index 19588136a..ab41620cd 100644
--- a/xmake/modules/core/tools/rustc.lua
+++ b/xmake/modules/core/tools/rustc.lua
@@ -65,6 +65,11 @@ function nf_syslink(self, lib)
return nf_link(self, lib)
end
+-- make the frameworkdir flag, crate module dependency directories
+function nf_frameworkdir(self, frameworkdir)
+ return {"-L", "dependency=" .. frameworkdir}
+end
+
-- make the framework flag, crate module
function nf_framework(self, framework)
local basename = path.basename(framework)