Index: chrome/test/data/nacl/nacl_test_data.gyp |
diff --git a/chrome/test/data/nacl/nacl_test_data.gyp b/chrome/test/data/nacl/nacl_test_data.gyp |
index 89854c0d24dbd6869776da5e5deee3d9460491c5..c27ab2ebea3cd58c7ffb7b656a761ae5401d83ed 100644 |
--- a/chrome/test/data/nacl/nacl_test_data.gyp |
+++ b/chrome/test/data/nacl/nacl_test_data.gyp |
@@ -1180,7 +1180,6 @@ |
'-fstack-protector-all', |
'-fprofile-generate', |
'-finstrument-functions', |
- '-O2', |
# ARM GCC emits symbols like __aeabi_unwind_cpp_pr0 in |
# .exidx sections with this flag. |
'-funwind-tables', |
@@ -1199,6 +1198,7 @@ |
# Do not use any sanitizers tools, which require a few symbols. |
'cflags/': [ |
['exclude', '-fsanitize'], |
+ ['exclude', '^-O'], # Strip -O2, -Os etc. |
], |
'ldflags/': [ |
['exclude', '-fsanitize'], |