From 57f8fcd422b1fbcc44ac3cf90c2c0fc2403ac868 Mon Sep 17 00:00:00 2001 From: Ben Wagner Date: Mon, 11 Jun 2018 12:19:40 -0400 Subject: When compiling SwiftShader, set BUILD_TESTS=OFF. After https://swiftshader-review.googlesource.com/c/SwiftShader/+/19228, SwiftShader fails to build without third_party/googletest unless BUILD_TESTS is disabled. Bug: skia:8054 Change-Id: If365fbbfc42dd3c41cc57be0fd7d494e7f83589d Reviewed-on: https://skia-review.googlesource.com/133832 Reviewed-by: Ravi Mistry Reviewed-by: Hal Canary Commit-Queue: Ben Wagner --- infra/bots/recipe_modules/build/default.py | 2 +- .../full.expected/Build-Debian9-Clang-x86_64-Release-SwiftShader.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'infra/bots/recipe_modules') diff --git a/infra/bots/recipe_modules/build/default.py b/infra/bots/recipe_modules/build/default.py index bb2a019365..5c88febe2e 100644 --- a/infra/bots/recipe_modules/build/default.py +++ b/infra/bots/recipe_modules/build/default.py @@ -35,7 +35,7 @@ def compile_swiftshader(api, swiftshader_root, cc, cxx, out): api.file.ensure_directory('makedirs swiftshader_out', out) with api.context(cwd=out, env=env): api.run(api.step, 'swiftshader cmake', - cmd=['cmake', swiftshader_root, '-GNinja']) + cmd=['cmake', '-DBUILD_TESTS=OFF', swiftshader_root, '-GNinja']) api.run(api.step, 'swiftshader ninja', cmd=['ninja', '-C', out, 'libEGL.so', 'libGLESv2.so']) diff --git a/infra/bots/recipe_modules/build/examples/full.expected/Build-Debian9-Clang-x86_64-Release-SwiftShader.json b/infra/bots/recipe_modules/build/examples/full.expected/Build-Debian9-Clang-x86_64-Release-SwiftShader.json index 6fa9d0dace..9ed4a73708 100644 --- a/infra/bots/recipe_modules/build/examples/full.expected/Build-Debian9-Clang-x86_64-Release-SwiftShader.json +++ b/infra/bots/recipe_modules/build/examples/full.expected/Build-Debian9-Clang-x86_64-Release-SwiftShader.json @@ -31,6 +31,7 @@ { "cmd": [ "cmake", + "-DBUILD_TESTS=OFF", "[START_DIR]/cache/work/skia/third_party/externals/swiftshader", "-GNinja" ], -- cgit v1.2.3