summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2023-02-09 00:46:32 +0800
committerruki <[email protected]>2023-02-09 00:46:32 +0800
commitdcf64199466a7c61a4f04cf7014f73ffcb867a4d (patch)
tree82b542f502c7ae0e3f9ba5d710863e42e1e700e1
parent54ce8619bb3b2ae8b7c64dc499ef25c30976847a (diff)
add linker tools
-rw-r--r--xmake/modules/core/tools/ld64_lld.lua23
-rw-r--r--xmake/modules/core/tools/ld_lld.lua23
-rw-r--r--xmake/modules/core/tools/lld_link.lua23
-rw-r--r--xmake/modules/core/tools/mold.lua23
-rw-r--r--xmake/modules/private/action/require/impl/package.lua1
5 files changed, 93 insertions, 0 deletions
diff --git a/xmake/modules/core/tools/ld64_lld.lua b/xmake/modules/core/tools/ld64_lld.lua
new file mode 100644
index 000000000..9a297a464
--- /dev/null
+++ b/xmake/modules/core/tools/ld64_lld.lua
@@ -0,0 +1,23 @@
+--!A cross-platform build utility based on Lua
+--
+-- Licensed under the Apache License, Version 2.0 (the "License");
+-- you may not use this file except in compliance with the License.
+-- You may obtain a copy of the License at
+--
+-- http://www.apache.org/licenses/LICENSE-2.0
+--
+-- Unless required by applicable law or agreed to in writing, software
+-- distributed under the License is distributed on an "AS IS" BASIS,
+-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+-- See the License for the specific language governing permissions and
+-- limitations under the License.
+--
+-- Copyright (C) 2015-present, TBOOX Open Source Group.
+--
+-- @author ruki
+-- @file ld64_lld.lua
+--
+
+-- imports
+inherit("ld")
+
diff --git a/xmake/modules/core/tools/ld_lld.lua b/xmake/modules/core/tools/ld_lld.lua
new file mode 100644
index 000000000..158e4f2ba
--- /dev/null
+++ b/xmake/modules/core/tools/ld_lld.lua
@@ -0,0 +1,23 @@
+--!A cross-platform build utility based on Lua
+--
+-- Licensed under the Apache License, Version 2.0 (the "License");
+-- you may not use this file except in compliance with the License.
+-- You may obtain a copy of the License at
+--
+-- http://www.apache.org/licenses/LICENSE-2.0
+--
+-- Unless required by applicable law or agreed to in writing, software
+-- distributed under the License is distributed on an "AS IS" BASIS,
+-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+-- See the License for the specific language governing permissions and
+-- limitations under the License.
+--
+-- Copyright (C) 2015-present, TBOOX Open Source Group.
+--
+-- @author ruki
+-- @file ld_lld.lua
+--
+
+-- imports
+inherit("ld")
+
diff --git a/xmake/modules/core/tools/lld_link.lua b/xmake/modules/core/tools/lld_link.lua
new file mode 100644
index 000000000..30c587ca0
--- /dev/null
+++ b/xmake/modules/core/tools/lld_link.lua
@@ -0,0 +1,23 @@
+--!A cross-platform build utility based on Lua
+--
+-- Licensed under the Apache License, Version 2.0 (the "License");
+-- you may not use this file except in compliance with the License.
+-- You may obtain a copy of the License at
+--
+-- http://www.apache.org/licenses/LICENSE-2.0
+--
+-- Unless required by applicable law or agreed to in writing, software
+-- distributed under the License is distributed on an "AS IS" BASIS,
+-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+-- See the License for the specific language governing permissions and
+-- limitations under the License.
+--
+-- Copyright (C) 2015-present, TBOOX Open Source Group.
+--
+-- @author ruki
+-- @file lld_link.lua
+--
+
+-- imports
+inherit("ld")
+
diff --git a/xmake/modules/core/tools/mold.lua b/xmake/modules/core/tools/mold.lua
new file mode 100644
index 000000000..fcae3aa6f
--- /dev/null
+++ b/xmake/modules/core/tools/mold.lua
@@ -0,0 +1,23 @@
+--!A cross-platform build utility based on Lua
+--
+-- Licensed under the Apache License, Version 2.0 (the "License");
+-- you may not use this file except in compliance with the License.
+-- You may obtain a copy of the License at
+--
+-- http://www.apache.org/licenses/LICENSE-2.0
+--
+-- Unless required by applicable law or agreed to in writing, software
+-- distributed under the License is distributed on an "AS IS" BASIS,
+-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+-- See the License for the specific language governing permissions and
+-- limitations under the License.
+--
+-- Copyright (C) 2015-present, TBOOX Open Source Group.
+--
+-- @author ruki
+-- @file mold.lua
+--
+
+-- imports
+inherit("ld")
+
diff --git a/xmake/modules/private/action/require/impl/package.lua b/xmake/modules/private/action/require/impl/package.lua
index 2d2c8447f..9af8d6f3d 100644
--- a/xmake/modules/private/action/require/impl/package.lua
+++ b/xmake/modules/private/action/require/impl/package.lua
@@ -167,6 +167,7 @@ function _load_require(require_str, requires_extra, parentinfo)
"verify", "external", "private", "build", "configs", "version")
for name, value in pairs(require_extra) do
if not extra_options:has(name) then
+ print("not found")
wprint("add_requires(\"%s\") has unknown option: {%s=%s}!", require_str, name, tostring(value))
end
end