emscripten/emar

25 строки
431 B
Plaintext
Исходник Обычный вид История

#!/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')
2013-02-27 04:39:14 +04:00
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)