From 8140f30d2fe3609243ac4b992c278fd32cfd7385 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Fri, 22 May 2015 10:49:36 -0700 Subject: [PATCH] accept failure to make a configure executable executable --- emcc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/emcc b/emcc index fe6567bca..a81edccaf 100755 --- a/emcc +++ b/emcc @@ -281,7 +281,10 @@ if CONFIGURE_CONFIG or CMAKE_CONFIG: full_node = '/usr/bin/' + full_node # TODO: use whereis etc. And how about non-*NIX? open(target, 'w').write('#!' + full_node + '\n' + src) # add shebang import stat - os.chmod(target, stat.S_IMODE(os.stat(target).st_mode) | stat.S_IXUSR) # make executable + try: + os.chmod(target, stat.S_IMODE(os.stat(target).st_mode) | stat.S_IXUSR) # make executable + except: + pass # can fail if e.g. writing the executable to /dev/null exit(ret) if os.environ.get('EMMAKEN_COMPILER'):