aboutsummaryrefslogtreecommitdiff
path: root/emar
blob: 5a627993a2ac75f478d11490ade4fe2bad1f8ebe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/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

os.execvp(shared.EMLD, newargs)