aboutsummaryrefslogtreecommitdiff
path: root/emar
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-12-14 11:12:19 -0800
committerAlon Zakai <alonzakai@gmail.com>2011-12-14 11:12:19 -0800
commit5322f208ad2126038456c90860970739c6e36556 (patch)
tree7f6ddd4f20d09de6e21faeee6504e08226c08f9a /emar
parent6c2ee0edcff41748ac4bd771a3fdc7be03b1e084 (diff)
initial work to refactor emcc into emcc, emld, emar, emranlib
Diffstat (limited to 'emar')
-rwxr-xr-xemar13
1 files changed, 13 insertions, 0 deletions
diff --git a/emar b/emar
new file mode 100755
index 00000000..65e106f9
--- /dev/null
+++ b/emar
@@ -0,0 +1,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'
+