aboutsummaryrefslogtreecommitdiff
path: root/tools/shared.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/shared.py')
-rw-r--r--tools/shared.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/shared.py b/tools/shared.py
index d3cc330b..8dc9fbea 100644
--- a/tools/shared.py
+++ b/tools/shared.py
@@ -114,9 +114,9 @@ def pick_llvm_opts(optimization_level, safe=True):
if not safe:
opts.append('-O%d' % optimization_level)
else:
- allow_nonportable = False
+ allow_nonportable = not safe
optimize_size = True
- use_aa = False
+ use_aa = not safe
# PassManagerBuilder::populateModulePassManager
if allow_nonportable and use_aa: # ammo.js results indicate this can be nonportable