Skip to content

Commit

Permalink
pw_bluetooth_sapphire: Add copts to fuchsia config for boringssl
Browse files Browse the repository at this point in the history
Adds the correct defines for compiling boringssl for Fuchsia which
optimize for size.

Change-Id: I2f5dd007767e5daef5f5959242453117b3e9e3fd
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/236332
Commit-Queue: Ben Lawson <[email protected]>
Reviewed-by: Ben Lawson <[email protected]>
Lint: Lint 🤖 <[email protected]>
Commit-Queue: Chase Latta <[email protected]>
Docs-Not-Needed: Ben Lawson <[email protected]>
  • Loading branch information
chaselatta authored and CQ Bot Account committed Sep 16, 2024
1 parent 461c43a commit bbe5cd6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pw_bluetooth_sapphire/fuchsia/backends.bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,10 @@ common:fuchsia --@pigweed//pw_log:backend_impl=@pigweed//pw_build:empty_cc_libra
common:fuchsia --@pigweed//pw_unit_test:backend=@pigweed//pw_unit_test:googletest
common:fuchsia --@pigweed//pw_async:task_backend=@pigweed//pw_async_fuchsia:task
common:fuchsia --@pigweed//pw_async:fake_dispatcher_backend=@pigweed//pw_async_fuchsia:fake_dispatcher

# The following flags are needed to build boringssl with the correct size
build:fuchsia --copt=-DBORINGSSL_ALLOW_CXX_RUNTIME
build:fuchsia --copt=-DOPENSSL_SMALL
build:fuchsia --copt=-DOPENSSL_NO_ASM
build:fuchsia --copt=-DOPENSSL_NO_SOCK
build:fuchsia --copt=-DNDEBUG

0 comments on commit bbe5cd6

Please sign in to comment.