aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-02-15 23:30:07 -0500
committerAlon Zakai <alonzakai@gmail.com>2012-02-15 23:30:07 -0500
commite4a37fdb02452678fea08ee85c73180cbbd36e11 (patch)
tree48bb4046e2981a43c47c95f6c781be77ef9a154d
parent7d756357d7dec0009a9f0c603da0b95cf5a211f4 (diff)
fix test_cases
-rwxr-xr-xemcc3
1 files changed, 1 insertions, 2 deletions
diff --git a/emcc b/emcc
index d7b7396f..c9afa699 100755
--- a/emcc
+++ b/emcc
@@ -556,9 +556,8 @@ try:
fix()
# First, combine the bitcode files if there are several. We must also link if we have a singleton .a
- suff = suffix(temp_files[0])
if len(input_files) + len(extra_files_to_link) > 1 or \
- (not (suff in BITCODE_SUFFIXES or suff in SHAREDLIB_SUFFIXES) and shared.Building.is_ar(temp_files[0])):
+ (not LEAVE_INPUTS_RAW and not (suffix(temp_files[0]) in BITCODE_SUFFIXES or suffix(temp_files[0]) in SHAREDLIB_SUFFIXES) and shared.Building.is_ar(temp_files[0])):
linker_inputs = temp_files + extra_files_to_link
if DEBUG: print >> sys.stderr, 'emcc: linking: ', linker_inputs
shared.Building.link(linker_inputs,