aboutsummaryrefslogtreecommitdiff
path: root/emar
diff options
context:
space:
mode:
authorEhsan Akhgari <ehsan.akhgari@gmail.com>2012-02-07 17:05:22 -0500
committerEhsan Akhgari <ehsan.akhgari@gmail.com>2012-02-08 18:45:37 -0500
commitf0fe97c44891b20962d4c3f7122d205cdfc479aa (patch)
tree6b3c65085271ae698af196f941978c16897de079 /emar
parentb782221bf8a5d1271c3277e27360adc1d5e7bb75 (diff)
Use llvm-ar instead of llvm-link in emar
This makes the semantics of emar to be the same as the semantics of system ar.
Diffstat (limited to 'emar')
-rwxr-xr-xemar4
1 files changed, 2 insertions, 2 deletions
diff --git a/emar b/emar
index 49d995bd..e64cd8b9 100755
--- a/emar
+++ b/emar
@@ -12,11 +12,11 @@ from tools import shared
DEBUG = os.environ.get('EMCC_DEBUG')
-newargs = [shared.LLVM_LINK] + sys.argv[3:] + ['-o='+sys.argv[2]]
+newargs = [shared.LLVM_AR] + sys.argv[1:]
if DEBUG:
print >> sys.stderr, 'emar:', sys.argv, ' ==> ', newargs
if len(newargs) > 2:
- os.execvp(shared.LLVM_LINK, newargs)
+ os.execvp(shared.LLVM_AR, newargs)