summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2019-09-19 12:23:55 +0900
committerNobuyoshi Nakada <[email protected]>2019-09-19 12:25:48 +0900
commitdf3fd5071742397c7c5b908d0632f17aa79c2b51 ()
tree4713955db587bf62a6896239892f1dca8498d1bf /ext
parent66c644da5e80258bb3217941223d923f923c3548 (diff)
Removed mkmf.log dump in Makefile
-rw-r--r--ext/-test-/cxxanyargs/extconf.rb5
-rwxr-xr-xext/extmk.rb8
2 files changed, 5 insertions, 8 deletions
@@ -2,7 +2,6 @@
cxx = MakeMakefile["C++"]
-begin
ok = cxx.try_compile(<<~'begin', "") do |x|
#include "ruby/config.h"
@@ -21,11 +20,7 @@ begin
# subject we are going to test in this extension library.
x.sub! %<#include "ruby.h">, ''
end
-rescue
-end
if ok
create_makefile("-test-/cxxanyargs")
-else
- File.write("Makefile", "all:\n\tcat mkmf.log\n")
end
@@ -271,9 +271,11 @@ def extmake(target, basedir = 'ext', maybestatic = true)
ensure
Logging::log_close
if error
- STDERR.print("#{message}\n\t#{error.backtrace.join("\n\t")}\n")
- if File.exist?("mkmf.log")
- IO.copy_stream("mkmf.log", STDERR)
end
end
if rbconfig0