Skip to content

Commit 42b0339

Browse files
committed
warni when ignoring libs
1 parent 6c80e75 commit 42b0339

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

emcc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -808,7 +808,8 @@ try:
808808
final_suffix = 'o'
809809

810810
# do not link in libs when just generating object code (not an 'executable', i.e. JS, or a library)
811-
if ('.' + final_suffix) in BITCODE_SUFFIXES:
811+
if ('.' + final_suffix) in BITCODE_SUFFIXES and len(libs) > 0:
812+
print >> sys.stderr, 'emcc: warning: not linking against libraries since only compiling to bitcode'
812813
libs = []
813814

814815
# Find library files

0 commit comments

Comments
 (0)