~ubuntu-branches/ubuntu/vivid/emscripten/vivid

« back to all changes in this revision

Viewing changes to emar

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2013-05-02 13:11:51 UTC
  • Revision ID: package-import@ubuntu.com-20130502131151-q8dvteqr1ef2x7xz
Tags: upstream-1.4.1~20130504~adb56cb
ImportĀ upstreamĀ versionĀ 1.4.1~20130504~adb56cb

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/env python2
 
2
 
 
3
'''
 
4
emar - ar helper script
 
5
=======================
 
6
 
 
7
This script acts as a frontend replacement for ar. See emcc.
 
8
'''
 
9
 
 
10
import os, subprocess, sys
 
11
from tools import shared
 
12
 
 
13
DEBUG = os.environ.get('EMCC_DEBUG')
 
14
if DEBUG == "0":
 
15
   DEBUG = None
 
16
 
 
17
newargs = [shared.LLVM_AR] + sys.argv[1:]
 
18
 
 
19
if DEBUG:
 
20
  print >> sys.stderr, 'emar:', sys.argv, '  ==>  ', newargs
 
21
 
 
22
if len(newargs) > 2:
 
23
  subprocess.call(newargs)
 
24