Skip to content

Commit

Permalink
Add a target to produce a SyzyASan instrumented version of pdf.dll
Browse files Browse the repository at this point in the history
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
  • Loading branch information
sebmarchand@chromium.org committed Jun 12, 2014
1 parent 071ca88 commit 929dd4d
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
1 change: 1 addition & 0 deletions build/all.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -675,6 +675,7 @@
'dependencies': [
'../chrome/chrome_syzygy.gyp:chrome_dll_syzygy',
'../content/content_shell_and_tests.gyp:content_shell_syzyasan',
'../pdf/pdf.gyp:pdf_syzyasan',
],
'conditions': [
['chrome_multiple_dll==1', {
Expand Down
36 changes: 36 additions & 0 deletions pdf/pdf.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -165,5 +165,41 @@
},
],
},], # 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
],
}

0 comments on commit 929dd4d

Please sign in to comment.