aboutsummaryrefslogtreecommitdiff
path: root/emcc
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-12-11 14:01:06 -0800
committerAlon Zakai <alonzakai@gmail.com>2012-12-11 14:01:06 -0800
commitc83b1d4e9ef4525c35adbbf5a697aa46418bb7f1 (patch)
tree2172c7cacd15592c2210d26a87da8d21565f06be /emcc
parentd9e1837c619bc70f9424489787ca80766c998789 (diff)
parent42b03394eb80db5183d2eb8c2c22b587cd85794e (diff)
Merge branch 'incoming' into asm_js
Diffstat (limited to 'emcc')
-rwxr-xr-xemcc3
1 files changed, 2 insertions, 1 deletions
diff --git a/emcc b/emcc
index 27b873c4..d98eb709 100755
--- a/emcc
+++ b/emcc
@@ -806,7 +806,8 @@ try:
final_suffix = 'o'
# do not link in libs when just generating object code (not an 'executable', i.e. JS, or a library)
- if ('.' + final_suffix) in BITCODE_SUFFIXES:
+ if ('.' + final_suffix) in BITCODE_SUFFIXES and len(libs) > 0:
+ print >> sys.stderr, 'emcc: warning: not linking against libraries since only compiling to bitcode'
libs = []
# Find library files