Add a target to produce a SyzyASan instrumented version of pdf.dll

This will be used on Clusterfuzz, and we might ship this on the Canary sometimes if the performances are reasonable.

BUG=

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@276746 0039d316-1c4b-4281-b951-d872f2087c98
parent 071ca888
...@@ -675,6 +675,7 @@ ...@@ -675,6 +675,7 @@
'dependencies': [ 'dependencies': [
'../chrome/chrome_syzygy.gyp:chrome_dll_syzygy', '../chrome/chrome_syzygy.gyp:chrome_dll_syzygy',
'../content/content_shell_and_tests.gyp:content_shell_syzyasan', '../content/content_shell_and_tests.gyp:content_shell_syzyasan',
'../pdf/pdf.gyp:pdf_syzyasan',
], ],
'conditions': [ 'conditions': [
['chrome_multiple_dll==1', { ['chrome_multiple_dll==1', {
......
...@@ -165,5 +165,41 @@ ...@@ -165,5 +165,41 @@
}, },
], ],
},], # OS=="linux" and chromeos==0 },], # OS=="linux" and chromeos==0
['OS=="win" and fastbuild==0 and target_arch=="ia32" and syzyasan==1', {
'variables': {
'dest_dir': '<(PRODUCT_DIR)/syzygy',
},
'targets': [
{
'target_name': 'pdf_syzyasan',
'type': 'none',
'sources' : [],
'dependencies': [
'pdf',
],
# Instrument PDFium with SyzyAsan.
'actions': [
{
'action_name': 'Instrument PDFium with SyzyAsan',
'inputs': [
'<(PRODUCT_DIR)/pdf.dll',
],
'outputs': [
'<(dest_dir)/pdf.dll',
'<(dest_dir)/pdf.dll.pdb',
],
'action': [
'python',
'<(DEPTH)/chrome/tools/build/win/syzygy_instrument.py',
'--mode', 'asan',
'--input_executable', '<(PRODUCT_DIR)/pdf.dll',
'--input_symbol', '<(PRODUCT_DIR)/pdf.dll.pdb',
'--destination_dir', '<(dest_dir)',
],
},
],
},
],
}], # OS=="win" and fastbuild==0 and target_arch=="ia32" and syzyasan==1
], ],
} }
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