diff options
| author | Eric Fiselier <eric@efcs.ca> | 2016-08-15 19:37:20 +0000 |
|---|---|---|
| committer | Eric Fiselier <eric@efcs.ca> | 2016-08-15 19:37:20 +0000 |
| commit | d9ce2917390f3b9c28a6ee57536193cdf47d4db9 (patch) | |
| tree | 7de3137c06ecee751ec26381a6a1c183f4c2bb66 /libcxx | |
| parent | a0d40a21e7e78aed1d605bd76bfb1eb2d718eb29 (diff) | |
| download | bcm5719-llvm-d9ce2917390f3b9c28a6ee57536193cdf47d4db9.tar.gz bcm5719-llvm-d9ce2917390f3b9c28a6ee57536193cdf47d4db9.zip | |
Use -O1 when testing with ASAN and MSAN to prevent Clang OOM errors.
Currently certain tests get killed when compiled with ASAN at -O0 because
they eat all of the systems memory. This doesn't happen at -O1, so enable that
to work around the issue.
llvm-svn: 278722
Diffstat (limited to 'libcxx')
| -rw-r--r-- | libcxx/test/libcxx/test/config.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libcxx/test/libcxx/test/config.py b/libcxx/test/libcxx/test/config.py index 1d0315561c1..579089a9501 100644 --- a/libcxx/test/libcxx/test/config.py +++ b/libcxx/test/libcxx/test/config.py @@ -617,6 +617,7 @@ class Configuration(object): self.env['ASAN_OPTIONS'] = 'detect_odr_violation=0' self.config.available_features.add('asan') self.config.available_features.add('sanitizer-new-delete') + self.cxx.compile_flags += ['-O1'] elif san == 'Memory' or san == 'MemoryWithOrigins': self.cxx.flags += ['-fsanitize=memory'] if san == 'MemoryWithOrigins': @@ -626,6 +627,7 @@ class Configuration(object): self.env['MSAN_SYMBOLIZER_PATH'] = llvm_symbolizer self.config.available_features.add('msan') self.config.available_features.add('sanitizer-new-delete') + self.cxx.compile_flags += ['-O1'] elif san == 'Undefined': self.cxx.flags += ['-fsanitize=undefined', '-fno-sanitize=vptr,function,float-divide-by-zero', |

