aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-05-03 10:47:23 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-05-03 10:47:23 -0700
commit2cd4b8256af6611460f86c5781a233c618625488 (patch)
treecf74742c2ddcae900bd648ca0a41d7f29d6e9f2a
parent505f5f10af17e5d9994e1840c30498d2fbda8510 (diff)
restore warning on no input files, to match gcc
-rwxr-xr-xemcc4
1 files changed, 4 insertions, 0 deletions
diff --git a/emcc b/emcc
index ad2e71ac..44ff1684 100755
--- a/emcc
+++ b/emcc
@@ -121,6 +121,10 @@ shared.check_sanity(force=DEBUG)
# Handle some global flags
+if len(sys.argv) == 1:
+ logging.warning('no input files')
+ exit(1)
+
# read response files very early on
response_file = True
while response_file: