blob: 65e106f90bbd1e2819dd825f204fcf3cfcde3bed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/usr/bin/env python
'''
emcc - ar helper script
=======================
This script acts as a frontend replacement for ar. See emcc.
'''
if set(sys.argv[1]).issubset(set('-cruqs')): # ar
sys.argv = sys.argv[:1] + sys.argv[3:] + ['-o='+sys.argv[2]]
assert use_linker, 'Linker should be used in this case'
|