1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

extmk.rb: remove direct build mode

* ext/extmk.rb (parse_args): --command-output is now mandatory.
  remove direct build mode.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57448 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2017-01-28 05:23:39 +00:00
parent cc33dd2b67
commit c3df88eca6

View file

@ -375,6 +375,7 @@ def parse_args()
$optparser.warn(e)
abort $optparser.to_s
end
$command_output or abort "--command-output option is mandatory"
$destdir ||= ''
@ -681,7 +682,7 @@ $makeflags.uniq!
$mflags.unshift("topdir=#$topdir")
ENV.delete("RUBYOPT")
if $configure_only and $command_output
if $configure_only
exts.map! {|d| "#{ext_prefix}/#{d}/."}
FileUtils.makedirs(File.dirname($command_output))
atomic_write_open($command_output) do |mf|
@ -781,7 +782,7 @@ if $configure_only and $command_output
end
end
elsif $command_output
else
message = "making #{rubies.join(', ')}"
message = "echo #{message}"
$mflags.concat(rubies)
@ -800,12 +801,6 @@ elsif $command_output
end
ff.chmod(0755)
end
elsif !$configure_only
message = "making #{rubies.join(', ')}"
puts message
$stdout.flush
$mflags.concat(rubies)
system($make, *$mflags) or exit($?.exitstatus)
end
# :startdoc: