diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-12-14 11:12:19 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-12-14 11:12:19 -0800 |
commit | 5322f208ad2126038456c90860970739c6e36556 (patch) | |
tree | 7f6ddd4f20d09de6e21faeee6504e08226c08f9a /emar | |
parent | 6c2ee0edcff41748ac4bd771a3fdc7be03b1e084 (diff) |
initial work to refactor emcc into emcc, emld, emar, emranlib
Diffstat (limited to 'emar')
-rwxr-xr-x | emar | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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' + |