diff options
| 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 |
| commit | 880eeb4bc1633eccb52d4df19404441f6076d770 (patch) | |
| tree | 113fa7a4b8fd49ae8599fea123734fb6a47f47b7 /xmake/rules/c++/modules/build_modulefiles.lua | |
| parent | c1b1b841353e32d2df356b8765d1189bef3d2f11 (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.lua | 4 |
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) |
