We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1048779 commit daff032Copy full SHA for daff032
extconf.rb
@@ -10,14 +10,18 @@
10
WARNING:
11
WARNING: See https://github.com/rbenv/ruby-build/pull/2517 for more details.
12
MSG
13
- if File.exist?("/dev/tty")
+
14
+ # extconf.rb runs in a captured subprocess, so the only way to output is via /dev/tty
15
+ if File.exist?("/dev/tty") && File.writable?("/dev/tty")
16
error << <<~MSG
17
18
WARNING: The native jruby executable has not been installed.
19
20
File.write("/dev/tty", error)
21
else
22
+ # /dev/tty is not available, so write to stderr and raise
23
$stderr.write(error)
24
+ raise
25
end
26
File.write("Makefile", dummy_makefile($srcdir).join(""))
27
return
0 commit comments