summaryrefslogtreecommitdiff
path: root/xmake/modules
diff options
context:
space:
mode:
authorruki <[email protected]>2018-11-08 22:51:57 +0800
committerruki <[email protected]>2018-11-08 11:11:44 +0800
commitda5ba0608b0db673077d30951b7227ed42a69dca (patch)
tree8b0968bf8cf6cd33db6704c615fd2c1db18abb7e /xmake/modules
parenta1c8f03dc30ad086a2116458ae58ec6e2eddce1b (diff)
add syslinks api
Diffstat (limited to 'xmake/modules')
-rw-r--r--xmake/modules/core/tools/cparser.lua5
-rw-r--r--xmake/modules/core/tools/dmd.lua5
-rw-r--r--xmake/modules/core/tools/gcc.lua5
-rw-r--r--xmake/modules/core/tools/link.lua5
-rw-r--r--xmake/modules/core/tools/nvcc.lua5
-rw-r--r--xmake/modules/core/tools/rustc.lua5
-rw-r--r--xmake/modules/core/tools/swiftc.lua5
-rw-r--r--xmake/modules/core/tools/tcc.lua5
8 files changed, 40 insertions, 0 deletions
diff --git a/xmake/modules/core/tools/cparser.lua b/xmake/modules/core/tools/cparser.lua
index 84eb91fc4..c993b8317 100644
--- a/xmake/modules/core/tools/cparser.lua
+++ b/xmake/modules/core/tools/cparser.lua
@@ -139,6 +139,11 @@ 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" .. os.args(dir)
diff --git a/xmake/modules/core/tools/dmd.lua b/xmake/modules/core/tools/dmd.lua
index cb3565207..d02044803 100644
--- a/xmake/modules/core/tools/dmd.lua
+++ b/xmake/modules/core/tools/dmd.lua
@@ -137,6 +137,11 @@ function nf_link(self, lib)
return "-L-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-L" .. os.args(dir)
diff --git a/xmake/modules/core/tools/gcc.lua b/xmake/modules/core/tools/gcc.lua
index 551a158e3..91e4396bf 100644
--- a/xmake/modules/core/tools/gcc.lua
+++ b/xmake/modules/core/tools/gcc.lua
@@ -251,6 +251,11 @@ 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" .. os.args(dir)
diff --git a/xmake/modules/core/tools/link.lua b/xmake/modules/core/tools/link.lua
index ae2112559..baf300ff2 100644
--- a/xmake/modules/core/tools/link.lua
+++ b/xmake/modules/core/tools/link.lua
@@ -83,6 +83,11 @@ function nf_link(self, lib)
return lib .. ".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 "-libpath:" .. os.args(dir)
diff --git a/xmake/modules/core/tools/nvcc.lua b/xmake/modules/core/tools/nvcc.lua
index 316dae6ea..ab35d93c8 100644
--- a/xmake/modules/core/tools/nvcc.lua
+++ b/xmake/modules/core/tools/nvcc.lua
@@ -130,6 +130,11 @@ 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" .. os.args(dir)
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)
diff --git a/xmake/modules/core/tools/swiftc.lua b/xmake/modules/core/tools/swiftc.lua
index 7f72be37f..9701e08d6 100644
--- a/xmake/modules/core/tools/swiftc.lua
+++ b/xmake/modules/core/tools/swiftc.lua
@@ -182,6 +182,11 @@ 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" .. os.args(dir)
diff --git a/xmake/modules/core/tools/tcc.lua b/xmake/modules/core/tools/tcc.lua
index 98c157edf..dd2bb594a 100644
--- a/xmake/modules/core/tools/tcc.lua
+++ b/xmake/modules/core/tools/tcc.lua
@@ -139,6 +139,11 @@ 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" .. os.args(dir)