We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d46a1e commit 75c8279Copy full SHA for 75c8279
1 file changed
lua/cmake-tools/scanner.lua
@@ -41,13 +41,13 @@ local function find_toolchain_file(prefix)
41
return nil
42
end
43
local function match_c_compiler(exe)
44
- for _, c_name in ipairs(C_COMPILERS) do
45
- local prefix = exe:match("^(.+%-)" .. c_name .. "$")
+ for _, compiler_name in ipairs(C_COMPILERS) do
+ local prefix = exe:match("^(.+%-)" .. compiler_name .. "$")
46
if prefix then
47
- return prefix, c_name
+ return prefix, compiler_name
48
49
- if exe == c_name then
50
- return "", c_name
+ if exe == compiler_name then
+ return "", compiler_name
51
52
53
return nil, nil
0 commit comments