Pass -lrt when linking AddressSanitizer, ThreadSanitizer, MemorySanitizer binaries on Linux only (was: AddressSanitizer, everywhere)
BUG=234010 TBR=hans Review URL: https://codereview.chromium.org/16018009 git-svn-id: http://src.chromium.org/svn/trunk/src/build@202537 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
This commit is contained in:
Родитель
ed3b037ec2
Коммит
e0f070435b
|
@ -3131,6 +3131,12 @@
|
|||
'-Wl,--as-needed',
|
||||
],
|
||||
}],
|
||||
['_toolset=="target" and OS=="linux"', {
|
||||
'ldflags': [
|
||||
# http://crbug.com/234010.
|
||||
'-lrt',
|
||||
],
|
||||
}],
|
||||
],
|
||||
}],
|
||||
['asan==1', {
|
||||
|
@ -3142,8 +3148,6 @@
|
|||
],
|
||||
'ldflags': [
|
||||
'-fsanitize=address',
|
||||
# http://crbug.com/234010.
|
||||
'-lrt',
|
||||
],
|
||||
'defines': [
|
||||
'ADDRESS_SANITIZER',
|
||||
|
|
Загрузка…
Ссылка в новой задаче