summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2026-04-09 14:13:26 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2026-04-09 14:13:26 +0900
commit4b6a467a4a8998dcd50a54f610ccbaebdae279c1 (patch)
tree9a38b0cc298b56ced72778da0cb86e84ad70ea26
parent4644e4f2fafe45e2c49f18bc9712d0f5fff3d341 (diff)
mkmf: skip if C++ compiler not found
-rw-r--r--test/mkmf/test_egrep_cpp.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/mkmf/test_egrep_cpp.rb b/test/mkmf/test_egrep_cpp.rb
index 2d10140368..1126324965 100644
--- a/test/mkmf/test_egrep_cpp.rb
+++ b/test/mkmf/test_egrep_cpp.rb
@@ -20,6 +20,8 @@ class TestMkmfEgrepCpp < TestMkmf
#error not C++
#endif
SRC
+ rescue Errno::ENOENT
+ omit "C++ compiler not available: #{$!.message}"
end
end
end