summaryrefslogtreecommitdiff
path: root/xmake/modules/private/utils/toolchain.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2024-08-31 00:43:21 +0800
committerruki <[email protected]>2024-08-31 00:43:21 +0800
commitb7ef860d94d16822e75d56b6f48ad3416913e095 (patch)
tree336b979400ec1282be0c06c61829ce201fe5800e /xmake/modules/private/utils/toolchain.lua
parent8317c6570c5abcd0e054741f58770b7eb57ec744 (diff)
rename api
Diffstat (limited to 'xmake/modules/private/utils/toolchain.lua')
-rw-r--r--xmake/modules/private/utils/toolchain.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/xmake/modules/private/utils/toolchain.lua b/xmake/modules/private/utils/toolchain.lua
index 634169dac..855e063d0 100644
--- a/xmake/modules/private/utils/toolchain.lua
+++ b/xmake/modules/private/utils/toolchain.lua
@@ -50,8 +50,8 @@ function get_vs_toolset_ver(vs_toolset)
return toolset_ver
end
--- map compiler flags
-function map_compflags(package, langkind, name, values)
+-- map compiler flags for package
+function map_compflags_for_package(package, langkind, name, values)
-- @note we need to patch package:sourcekinds(), because it wiil be called nf_runtime for gcc/clang
package.sourcekinds = function (self)
local sourcekind = language.langkinds()[langkind]
@@ -62,8 +62,8 @@ function map_compflags(package, langkind, name, values)
return flags
end
--- map linker flags
-function map_linkflags(package, targetkind, sourcekinds, name, values)
+-- map linker flags for package
+function map_linkflags_for_package(package, targetkind, sourcekinds, name, values)
-- @note we need to patch package:sourcekinds(), because it wiil be called nf_runtime for gcc/clang
package.sourcekinds = function (self)
return sourcekinds