diff options
author | Nathan Hammond <github.com@nathanhammond.com> | 2012-03-07 21:31:08 -0500 |
---|---|---|
committer | Nathan Hammond <github.com@nathanhammond.com> | 2012-03-07 21:31:08 -0500 |
commit | 8219427f95f5e40e04822e2e2371d7adedc11cdc (patch) | |
tree | 426bce3f9f0e3692171f001b4c12fdd3f22a7a87 /emcc | |
parent | 1c1e00f1ddf6a816872991e3d10cbfcc38ff5134 (diff) | |
parent | 84c9c225258ae9ab77eda0163b1368e95cb55f10 (diff) |
Merge with @richardassar's changes.
Diffstat (limited to 'emcc')
-rwxr-xr-x | emcc | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -442,6 +442,11 @@ try: for i in range(len(newargs)): # find input files XXX this a simple heuristic. we should really analyze based on a full understanding of gcc params, # right now we just assume that what is left contains no more |-x OPT| things arg = newargs[i] + + if i > 0: + prev = newargs[i-1] + if prev == '-MT': continue # ignore this gcc-style argument + if arg.endswith(SOURCE_SUFFIXES + BITCODE_SUFFIXES + DYNAMICLIB_SUFFIXES + ASSEMBLY_SUFFIXES) or shared.Building.is_ar(arg): # we already removed -o <target>, so all these should be inputs newargs[i] = '' if os.path.exists(arg): |