зеркало из https://github.com/github/ruby.git
* lib/mkmf.rb ($extmk): set true only when under ext/ or tool/.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14470 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
aefc34a041
Коммит
366b82dde8
|
@ -1,3 +1,7 @@
|
|||
Sat Dec 22 15:17:40 2007 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* lib/mkmf.rb ($extmk): set true only when under ext/ or tool/.
|
||||
|
||||
Sat Dec 22 15:14:48 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* common.mk (encs, ext/ripper/ripper.c): needs MFLAGS.
|
||||
|
|
|
@ -145,7 +145,8 @@ end
|
|||
|
||||
topdir = File.dirname(libdir = File.dirname(__FILE__))
|
||||
extdir = File.expand_path("ext", topdir)
|
||||
$extmk = File.expand_path($0)[0, topdir.size+1] == topdir+"/"
|
||||
path = File.expand_path($0)
|
||||
$extmk = path[0, topdir.size+1] == topdir+"/" && %r"ext/|tool/" !~ path[topdir.size+1..-1]
|
||||
if not $extmk and File.exist?(($hdrdir = RbConfig::CONFIG["rubyhdrdir"]) + "/ruby/ruby.h")
|
||||
$topdir = $hdrdir
|
||||
$top_srcdir = $hdrdir
|
||||
|
|
Загрузка…
Ссылка в новой задаче