summaryrefslogtreecommitdiff
path: root/xmake/rules/c++/modules/build_modulefiles.lua
diff options
context:
space:
mode:
authorÂngelo Andrade Cirino <[email protected]>2021-07-15 10:57:09 -0300
committerÂngelo Andrade Cirino <[email protected]>2021-07-15 10:57:09 -0300
commit880eeb4bc1633eccb52d4df19404441f6076d770 (patch)
tree113fa7a4b8fd49ae8599fea123734fb6a47f47b7 /xmake/rules/c++/modules/build_modulefiles.lua
parentc1b1b841353e32d2df356b8765d1189bef3d2f11 (diff)
A little change to the toolname conditional
Diffstat (limited to 'xmake/rules/c++/modules/build_modulefiles.lua')
-rw-r--r--xmake/rules/c++/modules/build_modulefiles.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/rules/c++/modules/build_modulefiles.lua b/xmake/rules/c++/modules/build_modulefiles.lua
index a36ce49b3..99b5aeaaa 100644
--- a/xmake/rules/c++/modules/build_modulefiles.lua
+++ b/xmake/rules/c++/modules/build_modulefiles.lua
@@ -140,9 +140,9 @@ function main(target, sourcebatch, opt)
end
if modulesflag then
opt.modulesflag = modulesflag
- if string.find(toolname, "clang") then
+ if toolname:find("clang", 1, true) then
_build_modulefiles_clang(target, sourcebatch, opt)
- elseif string.find(toolname, "gcc") then
+ elseif toolname:find("gcc", 1, true) then
_build_modulefiles_gcc(target, sourcebatch, opt)
elseif toolname == "cl" then
_build_modulefiles_msvc(target, sourcebatch, opt)