* nacl/nacl-config.rb: Use File.exist? instead of executable?

for irt_core. Recent nacl_sdk has non-executable irt_core.
  Patch by Shinichiro Hamaji.
  [Fixes GH-529] https://github.com/ruby/ruby/pull/529

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46529 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
kosaki 2014-06-23 20:53:16 +00:00
Родитель a672789739
Коммит 476af221b7
2 изменённых файлов: 8 добавлений и 1 удалений

Просмотреть файл

@ -1,3 +1,10 @@
Tue Jun 24 05:40:41 2014 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* nacl/nacl-config.rb: Use File.exist? instead of executable?
for irt_core. Recent nacl_sdk has non-executable irt_core.
Patch by Shinichiro Hamaji.
[Fixes GH-529] https://github.com/ruby/ruby/pull/529
Tue Jun 24 03:52:35 2014 NARUSE, Yui <naruse@ruby-lang.org>
* lib/uri/mailto.rb: support RFC6068.

2
nacl/nacl-config.rb Normal file → Executable file
Просмотреть файл

@ -34,7 +34,7 @@ module NaClConfig
IRT_CORE = [
File.join(SDK_ROOT, 'toolchain', config['NACL_TOOLCHAIN'], 'bin', "irt_core_#{cpu_nick}.nexe"),
File.join(SDK_ROOT, 'tools', "irt_core_#{cpu_nick}.nexe")
].find{|path| File.executable?(path)} or raise "No irt_core found"
].find{|path| File.exist?(path)} or raise "No irt_core found"
RUNNABLE_LD = File.join(HOST_LIB, 'runnable-ld.so')
module_function