summaryrefslogtreecommitdiffstats
path: root/third_party
diff options
context:
space:
mode:
authorearthdok@chromium.org <earthdok@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-23 17:18:56 +0000
committerearthdok@chromium.org <earthdok@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-23 17:18:56 +0000
commit0ea4fa665f6ea0816dc6b390ac7d7bffe0a3950c (patch)
tree3e9de3f4621e970a61f01af468f44320e45fb4d5 /third_party
parent2857aa38587c2ac5f907c70ca0853549396c2a06 (diff)
downloadchromium_src-0ea4fa665f6ea0816dc6b390ac7d7bffe0a3950c.zip
chromium_src-0ea4fa665f6ea0816dc6b390ac7d7bffe0a3950c.tar.gz
chromium_src-0ea4fa665f6ea0816dc6b390ac7d7bffe0a3950c.tar.bz2
Instrumented libraries: build them with -O2.
It turns out that we've been building with -O0 all along! BUG=313751 TBR=glider@chromium.org NOTRY=true TEST=MSan compile Review URL: https://codereview.chromium.org/246523007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@265673 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party')
-rwxr-xr-xthird_party/instrumented_libraries/download_build_install.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/third_party/instrumented_libraries/download_build_install.py b/third_party/instrumented_libraries/download_build_install.py
index 5bc1fea..7f4c793 100755
--- a/third_party/instrumented_libraries/download_build_install.py
+++ b/third_party/instrumented_libraries/download_build_install.py
@@ -21,16 +21,17 @@ import sys
# directly in .so file.
SUPPORTED_SANITIZERS = {
'asan': {
- 'compiler_flags': '-fsanitize=address -gline-tables-only -fPIC -w',
+ 'compiler_flags': '-O2 -fsanitize=address -gline-tables-only -fPIC -w',
'linker_flags': '-fsanitize=address -Wl,-z,origin -Wl,-R,XORIGIN/.'
},
'msan': {
- 'compiler_flags': '-fsanitize=memory -fsanitize-memory-track-origins '
+ 'compiler_flags': '-O2 -fsanitize=memory '
+ '-fsanitize-memory-track-origins '
'-gline-tables-only -fPIC -w',
'linker_flags': '-fsanitize=memory -Wl,-z,origin -Wl,-R,XORIGIN/.'
},
'tsan': {
- 'compiler_flags': '-fsanitize=thread -gline-tables-only -fPIC -w',
+ 'compiler_flags': '-O2 -fsanitize=thread -gline-tables-only -fPIC -w',
'linker_flags': '-fsanitize=thread -Wl,-z,origin -Wl,-R,XORIGIN/.'
},
}