We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f259b5 commit 3022b5cCopy full SHA for 3022b5c
1 file changed
lua/cmake-tools/scanner.lua
@@ -46,7 +46,7 @@ local function get_gcc_version(gcc_path)
46
return nil
47
end
48
-- Try multiple patterns to match different gcc output formats
49
- local version = output:match("gcc%s+%(GCC%)%s+([%d%.]+)") -- "gcc (GCC) 15.2.1"
+ local version = output:match("gcc[%s%a]([%d%.]+)") -- "gcc (GCC) 15.2.1"
50
or output:match("gcc version ([%d%.]+)") -- "gcc version 11.4.0"
51
return version
52
0 commit comments