From 880eeb4bc1633eccb52d4df19404441f6076d770 Mon Sep 17 00:00:00 2001 From: Ângelo Andrade Cirino Date: Thu, 15 Jul 2021 10:57:09 -0300 Subject: A little change to the toolname conditional --- xmake/rules/c++/modules/build_modulefiles.lua | 4 ++-- 1 file 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) -- cgit v1.3.1