diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-11-17 18:12:34 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-11-17 18:12:34 -0800 |
commit | c1fb23123271f4250b80e76c0393842d2d4dbd2b (patch) | |
tree | 661fcda5fc9b09806d6628fa08c0e8dca93980a5 | |
parent | 89b2bf7c1931c70d982a837d08bdf6f13c2aa683 (diff) |
prep for unsafe opts
-rw-r--r-- | tools/shared.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/shared.py b/tools/shared.py index c1bd21d1..fa6475b6 100644 --- a/tools/shared.py +++ b/tools/shared.py @@ -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 |