зеркало из https://github.com/github/ruby.git
* lib/mkmf.rb (have_framework): try as Objective-C.
https://twitter.com/nagachika/status/120294447660539904 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33372 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
bc07265ceb
Коммит
49cc468ad4
|
@ -1,3 +1,8 @@
|
|||
Sat Oct 1 20:03:19 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* lib/mkmf.rb (have_framework): try as Objective-C.
|
||||
https://twitter.com/nagachika/status/120294447660539904
|
||||
|
||||
Sun Oct 2 08:43:25 2011 Kazuki Tsujimoto <kazuki@callcc.net>
|
||||
|
||||
* vm.c (rb_thread_mark), cont.c (cont_mark): self pointer should not
|
||||
|
|
|
@ -947,7 +947,7 @@ end
|
|||
def have_framework(fw, &b)
|
||||
checking_for fw do
|
||||
src = cpp_include("#{fw}/#{fw}.h") << "\n" "int main(void){return 0;}"
|
||||
if try_link(src, opt = "-framework #{fw}", &b)
|
||||
if try_link(src, opt = "-ObjC -framework #{fw}", &b)
|
||||
$defs.push(format("-DHAVE_FRAMEWORK_%s", fw.tr_cpp))
|
||||
$LDFLAGS << " " << opt
|
||||
true
|
||||
|
|
Загрузка…
Ссылка в новой задаче