1
0
mirror of https://github.com/dart-lang/sdk synced 2024-07-03 00:08:46 +00:00

[benchmark] Share BoringSSL between FfiBoringssl implementations.

The Dart benchmarks will soon be forked for non-nullability and there
will be two implementations of the FfiBoringssl benchmark. This change
moves the native BoringSSL build a level up so it can be shared between
the two implementations, avoiding doubling the needed filesystem space.

Change-Id: I8bcc113e19715865f28bc1950cf07ba6cc7ea61f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/148760
Reviewed-by: Daco Harkes <dacoharkes@google.com>
Commit-Queue: Jonas Termansen <sortie@google.com>
This commit is contained in:
Jonas Termansen 2020-05-20 16:08:50 +00:00 committed by commit-bot@chromium.org
parent 79762f96f8
commit 7aa8656d1d
6 changed files with 3 additions and 3 deletions

2
DEPS
View File

@ -477,7 +477,7 @@ deps = {
# TODO(37531): Remove these cipd packages and build with sdk instead when
# benchmark runner gets support for that.
Var("dart_root") + "/benchmarks/FfiBoringssl/dart/native/out/": {
Var("dart_root") + "/benchmarks/FfiBoringssl/native/out/": {
"packages": [
{
"package": "dart/benchmarks/ffiboringssl",

View File

@ -14,9 +14,9 @@ import 'types.dart';
DynamicLibrary openSsl() {
// Force load crypto.
dlopenPlatformSpecific("crypto",
path: Platform.script.resolve("native/out/").path);
path: Platform.script.resolve("../native/out/").path);
DynamicLibrary ssl = dlopenPlatformSpecific("ssl",
path: Platform.script.resolve("native/out/").path);
path: Platform.script.resolve("../native/out/").path);
return ssl;
}