Skip to content

Commit

Permalink
Build BoringSSL test tool (#4007)
Browse files Browse the repository at this point in the history
Adds GN code to always build BoringSSL test tool

b/360241262
  • Loading branch information
kaidokert authored Aug 20, 2024
1 parent e11695a commit 5087714
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
11 changes: 11 additions & 0 deletions third_party/boringssl/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,17 @@ if (!use_cobalt_customizations) {
}
}

if (is_starboard) {
target(final_executable_type, "boringssl_tool") {
testonly = true
sources = tool_sources
deps = [
":boringssl",
"//starboard:starboard_group",
]
}
}

if (build_with_chromium) {
# These targets are named "_tests" rather than "_test" to avoid colliding with
# a historical "boringssl_ssl_test" target. This works around a bug with the
Expand Down
2 changes: 2 additions & 0 deletions third_party/boringssl/src/tool/tool.cc
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ int main(int argc, char **argv) {
perror("_setmode(_fileno(stderr), O_BINARY)");
return 1;
}
#elif defined(STARBOARD)
// We don't have signal() ..
#else
signal(SIGPIPE, SIG_IGN);
#endif
Expand Down

0 comments on commit 5087714

Please sign in to comment.