23 строки
411 B
Python
Executable File
23 строки
411 B
Python
Executable File
#!/usr/bin/env python
|
|
|
|
'''
|
|
emar - ar helper script
|
|
=======================
|
|
|
|
This script acts as a frontend replacement for ar. See emcc.
|
|
'''
|
|
|
|
import os, sys
|
|
from tools import shared
|
|
|
|
DEBUG = os.environ.get('EMCC_DEBUG')
|
|
|
|
newargs = [shared.EMLD] + sys.argv[3:] + ['-o='+sys.argv[2]]
|
|
|
|
if DEBUG:
|
|
print >> sys.stderr, 'emar:', sys.argv, ' ==> ', newargs
|
|
|
|
if len(newargs) > 2:
|
|
os.execvp(shared.EMLD, newargs)
|
|
|