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

fake.rb: set extout

* tool/fake.rb (prehook): set "extout" in RbConfig to configure
  extension libraries.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54508 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2016-04-07 01:33:04 +00:00
parent eb87580d5b
commit 9cd35c22ab

View file

@ -54,9 +54,11 @@ prehook = proc do |extmk|
mkconfig = RbConfig::MAKEFILE_CONFIG mkconfig = RbConfig::MAKEFILE_CONFIG
mkconfig["builddir"] = config["builddir"] = builddir mkconfig["builddir"] = config["builddir"] = builddir
mkconfig["top_srcdir"] = $top_srcdir if $top_srcdir mkconfig["top_srcdir"] = $top_srcdir if $top_srcdir
mkconfig["extout"] ||= $extout
config["top_srcdir"] = File.expand_path($top_srcdir ||= top_srcdir) config["top_srcdir"] = File.expand_path($top_srcdir ||= top_srcdir)
config["rubyhdrdir"] = join[$top_srcdir, "include"] config["rubyhdrdir"] = join[$top_srcdir, "include"]
config["rubyarchhdrdir"] = join[builddir, config["EXTOUT"], "include", config["arch"]] config["rubyarchhdrdir"] = join[builddir, config["EXTOUT"], "include", config["arch"]]
config["extout"] ||= join[$topdir, ".ext"]
mkconfig["libdirname"] = "builddir" mkconfig["libdirname"] = "builddir"
trace_var(:$ruby, posthook) trace_var(:$ruby, posthook)
untrace_var(:$extmk, prehook) untrace_var(:$extmk, prehook)