Skip to content

Commit 4b6a467

Browse files
committed
mkmf: skip if C++ compiler not found
1 parent 4644e4f commit 4b6a467

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

test/mkmf/test_egrep_cpp.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ def test_cxx_egrep_cpp
2020
#error not C++
2121
#endif
2222
SRC
23+
rescue Errno::ENOENT
24+
omit "C++ compiler not available: #{$!.message}"
2325
end
2426
end
2527
end

0 commit comments

Comments
 (0)