From e72daf6116a35da5a8bbac05f11ff5a8800590d5 Mon Sep 17 00:00:00 2001 From: borenet Date: Wed, 7 Sep 2016 08:34:13 -0700 Subject: [PATCH] Run install-sysroot script before 'gn gen' on PDFium bot BUG=skia:5727 GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2317013002 Review-Url: https://codereview.chromium.org/2317013002 --- infra/bots/recipe_modules/flavor/pdfium_flavor.py | 8 ++++++++ .../Build-Ubuntu-GCC-x86_64-Release-PDFium.json | 15 +++++++++++++++ 2 files changed, 23 insertions(+) diff --git a/infra/bots/recipe_modules/flavor/pdfium_flavor.py b/infra/bots/recipe_modules/flavor/pdfium_flavor.py index 7aa21b2b02..83525fa442 100644 --- a/infra/bots/recipe_modules/flavor/pdfium_flavor.py +++ b/infra/bots/recipe_modules/flavor/pdfium_flavor.py @@ -24,6 +24,14 @@ class PDFiumFlavorUtils(default_flavor.DefaultFlavorUtils): cwd=pdfium_dir, **kwargs) + # Install the sysroot. + self.m.run( + self.m.step, + 'sysroot', + cmd=['python', 'build/linux/sysroot_scripts/install-sysroot.py', + '--arch=amd64'], + cwd=pdfium_dir) + # Setup gn args. gn_args = [ 'pdf_use_skia=true', diff --git a/infra/bots/recipes/swarm_compile.expected/Build-Ubuntu-GCC-x86_64-Release-PDFium.json b/infra/bots/recipes/swarm_compile.expected/Build-Ubuntu-GCC-x86_64-Release-PDFium.json index 0e138cc4d4..d0f9e30173 100644 --- a/infra/bots/recipes/swarm_compile.expected/Build-Ubuntu-GCC-x86_64-Release-PDFium.json +++ b/infra/bots/recipes/swarm_compile.expected/Build-Ubuntu-GCC-x86_64-Release-PDFium.json @@ -95,6 +95,21 @@ }, "name": "runhook" }, + { + "cmd": [ + "python", + "build/linux/sysroot_scripts/install-sysroot.py", + "--arch=amd64" + ], + "cwd": "[CUSTOM_/_B_WORK]/pdfium", + "env": { + "BUILDTYPE": "Release", + "CHROME_HEADLESS": "1", + "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]:RECIPE_PACKAGE_REPO[depot_tools]", + "SKIA_OUT": "[CUSTOM_/_B_WORK]/skia/out/Build-Ubuntu-GCC-x86_64-Release-PDFium" + }, + "name": "sysroot" + }, { "cmd": [ "gn",