This commit is contained in:
Alon Zakai 2011-12-21 15:54:20 -08:00
Родитель eccb671c19
Коммит e974325393
1 изменённых файлов: 2 добавлений и 1 удалений

3
emcc
Просмотреть файл

@ -83,6 +83,7 @@ LEAVE_INPUTS_RAW = os.environ.get('EMCC_LEAVE_INPUTS_RAW') # Do not compile .ll
# Not recommended, this is mainly for the test runner, or if you have some other
# specific need.
# One major limitation with this mode is that dlmalloc will not be added in.
# LLVM optimizations will also not be done.
if DEBUG: print >> sys.stderr, 'emcc: ', ' '.join(sys.argv)
@ -371,7 +372,7 @@ try:
shared.Building.llvm_as(input_file, in_temp(unsuffixed_basename(input_file) + '.o'))
# Optimize, if asked to
if llvm_opt_level > 0:
if llvm_opt_level > 0 and not LEAVE_INPUTS_RAW:
if DEBUG: print >> sys.stderr, 'emcc: LLVM opts'
for input_file in input_files:
try: