We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b256259 commit 8c70c04Copy full SHA for 8c70c04
1 file changed
lib/extpp/compiler.rb
@@ -60,7 +60,27 @@ def check_version
60
std = nil
61
62
case `#{RbConfig.expand("$(CXX) --version")}`
63
- when /g\+\+.+ (\d+\.\d+)\.\d/
+ when /[cg]\+\+.+ (\d+\.\d+)\.\d/
64
+ # Examples:
65
+ # "g++ --version" on Debian:
66
+ #
67
+ # g++ (Debian 15.2.0-12) 15.2.0
68
+ # ...
69
70
+ # "c++ --version" on Debian:
71
72
+ # c++ (Debian 15.2.0-12) 15.2.0
73
74
75
+ # "x86_64-conda-linux-gnu-g++ --version" on conda
76
77
+ # x86_64-conda-linux-gnu-g++ (conda-forge gcc 14.3.0-18) 14.3.0
78
79
80
+ # "x86_64-conda-linux-gnu-c++ --version" on conda
81
82
+ # x86_64-conda-linux-gnu-c++ (conda-forge gcc 14.3.0-18) 14.3.0
83
84
version = Float($1)
85
if version < 5.1
86
std = "gnu++11"
0 commit comments