aboutsummaryrefslogtreecommitdiff
path: root/emcc
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-03-11 13:19:02 -0700
committerAlon Zakai <alonzakai@gmail.com>2012-03-11 13:19:02 -0700
commit44161f79bdb949534faa50b38979310ed7d93ce4 (patch)
treecd9e6fff530ce9a03c164d485ad64cbc375e7a34 /emcc
parent3584e6e3cb89551663d9c7d67928c8185c08cc23 (diff)
helpful comment about necessary suffixes for emcc
Diffstat (limited to 'emcc')
-rwxr-xr-xemcc5
1 files changed, 4 insertions, 1 deletions
diff --git a/emcc b/emcc
index f646108b..f23777b9 100755
--- a/emcc
+++ b/emcc
@@ -489,7 +489,10 @@ try:
if ignore_dynamic_linking:
input_files = filter(lambda input_file: not input_file.endswith(DYNAMICLIB_SUFFIXES), input_files)
- assert len(input_files) > 0, 'emcc: no input files'
+ if len(input_files) == 0:
+ print >> sys.stderr, 'emcc: no input files'
+ print >> sys.stderr, 'note that input files without a known suffix are ignored, make sure your input files end with one of: ' + str(SOURCE_SUFFIXES + BITCODE_SUFFIXES + DYNAMICLIB_SUFFIXES + STATICLIB_SUFFIXES + ASSEMBLY_SUFFIXES)
+ exit(0)
newargs += CC_ADDITIONAL_ARGS