This commit is contained in:
Alon Zakai 2011-11-17 18:12:34 -08:00
Родитель 89b2bf7c19
Коммит c1fb231232
1 изменённых файлов: 6 добавлений и 1 удалений

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

@ -291,10 +291,15 @@ class Building:
into i64s. In any case, the handpicked ones here should be safe and portable. They are also tuned for
things that look useful.
'''
if not Building.LLVM_OPTS: return
opts = []
if optimization_level > 0:
if not safe:
opts.append('-O%d' % optimization_level)
#opts.append('-O%d' % optimization_level)
opts.append('-std-compile-opts')
opts.append('-std-link-opts')
print 'Unsafe:', opts
else:
allow_nonportable = not safe
optimize_size = True