Skip to content

Commit

Permalink
accept failure to make a configure executable executable
Browse files Browse the repository at this point in the history
  • Loading branch information
kripken committed May 22, 2015
1 parent e396b4b commit 8140f30
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion emcc
Original file line number Diff line number Diff line change
Expand Up @@ -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'):
Expand Down

0 comments on commit 8140f30

Please sign in to comment.