Commit cf351c24 authored by glider@chromium.org's avatar glider@chromium.org

Always use -gline-tables-only when building with ThreadSanitizer v2

BUG=128314

Review URL: https://codereview.chromium.org/14323008

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@195149 0039d316-1c4b-4281-b951-d872f2087c98
parent 480c0347
...@@ -2975,14 +2975,24 @@ ...@@ -2975,14 +2975,24 @@
'-fcolor-diagnostics', '-fcolor-diagnostics',
], ],
}], }],
# Common options for AddressSanitizer, ThreadSanitizer and
# MemorySanitizer.
['asan==1 or tsan==1 or msan==1', {
'target_conditions': [
['_toolset=="target"', {
'cflags': [
'-fno-omit-frame-pointer',
'-gline-tables-only',
],
}],
],
}],
['asan==1', { ['asan==1', {
'target_conditions': [ 'target_conditions': [
['_toolset=="target"', { ['_toolset=="target"', {
'cflags': [ 'cflags': [
'-fsanitize=address', '-fsanitize=address',
'-fno-omit-frame-pointer',
'-w', # http://crbug.com/162783 '-w', # http://crbug.com/162783
'-gline-tables-only',
], ],
'ldflags': [ 'ldflags': [
'-fsanitize=address', '-fsanitize=address',
...@@ -3005,7 +3015,6 @@ ...@@ -3005,7 +3015,6 @@
['_toolset=="target"', { ['_toolset=="target"', {
'cflags': [ 'cflags': [
'-fsanitize=thread', '-fsanitize=thread',
'-fno-omit-frame-pointer',
'-fPIC', '-fPIC',
'-mllvm', '-tsan-blacklist=<(tsan_blacklist)', '-mllvm', '-tsan-blacklist=<(tsan_blacklist)',
], ],
...@@ -3033,7 +3042,6 @@ ...@@ -3033,7 +3042,6 @@
'cflags': [ 'cflags': [
'-fsanitize=memory', '-fsanitize=memory',
'-fsanitize-memory-track-origins', '-fsanitize-memory-track-origins',
'-fno-omit-frame-pointer',
'-fPIC', '-fPIC',
], ],
'ldflags': [ 'ldflags': [
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment