Revision 8b67982bf0af32ffa48c6cf6355d7d86cdb0817d authored by Alon Zakai on 10 March 2014, 17:12:32 UTC, committed by Alon Zakai on 10 March 2014, 17:12:32 UTC
2 parent s 8658790 + 99a8cf5
Raw File
emar
#!/usr/bin/env python2

'''
emar - ar helper script
=======================

This script acts as a frontend replacement for ar. See emcc.
'''

import os, subprocess, sys
from tools import shared

DEBUG = os.environ.get('EMCC_DEBUG')
if DEBUG == "0":
   DEBUG = None

newargs = [shared.LLVM_AR] + sys.argv[1:]

if DEBUG:
  print >> sys.stderr, 'emar:', sys.argv, '  ==>  ', newargs

if len(newargs) > 2:
  subprocess.call(newargs)

back to top