From 42b03394eb80db5183d2eb8c2c22b587cd85794e Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Mon, 10 Dec 2012 19:01:53 -0800 Subject: warni when ignoring libs --- emcc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'emcc') diff --git a/emcc b/emcc index 48631d64..2190ff1c 100755 --- a/emcc +++ b/emcc @@ -808,7 +808,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 -- cgit v1.2.3-18-g5258