diff options
author | Jack He <siyuanh@google.com> | 2017-10-18 00:26:16 -0700 |
---|---|---|
committer | Jack He <siyuanh@google.com> | 2017-10-18 00:26:16 -0700 |
commit | d4b1d66dbe28818df3408a920ef37a3e0afca0aa (patch) | |
tree | 6049b5c653806f9b61a8a12feee3c6dd4f439d42 /build/Android.bp | |
parent | 5795e559ce47e5e3f118f77479ba651dfe5d9309 (diff) | |
download | bt-d4b1d66dbe28818df3408a920ef37a3e0afca0aa.tar.gz |
Add -fno-exceptions to default build config
* C++ exceptions are expensive and are not used in our code
* We need to disable exception to achieve desired behavior for
std::stoi, which we don't want it to crash when failing to parse an
incoming integer
Test: make, net_test_osi
Change-Id: Idc363ff1f25f085c75df3c473ee4d2a210af3b17
Diffstat (limited to 'build/Android.bp')
-rw-r--r-- | build/Android.bp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/build/Android.bp b/build/Android.bp index 8e4d6867c..ad1252b50 100644 --- a/build/Android.bp +++ b/build/Android.bp @@ -18,7 +18,8 @@ fluoride_defaults { name: "fluoride_types_defaults", cflags: [ "-DEXPORT_SYMBOL=__attribute__((visibility(\"default\")))", - "-fvisibility=hidden", + "-fno-exceptions", + "-fvisibility=hidden", "-Wall", "-Wextra", "-Werror", |