From 476af221b70d4698acadff0e4f379f637579237b Mon Sep 17 00:00:00 2001 From: kosaki Date: Mon, 23 Jun 2014 20:53:16 +0000 Subject: * 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 --- nacl/nacl-config.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 nacl/nacl-config.rb (limited to 'nacl') diff --git a/nacl/nacl-config.rb b/nacl/nacl-config.rb old mode 100644 new mode 100755 index b90c9ed100..2da05c0847 --- a/nacl/nacl-config.rb +++ b/nacl/nacl-config.rb @@ -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 -- cgit v1.2.3