Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ef4b7b6b authored by Jack He's avatar Jack He
Browse files

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
parent 5fdfd082
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -18,6 +18,7 @@ fluoride_defaults {
    name: "fluoride_types_defaults",
    cflags: [
        "-DEXPORT_SYMBOL=__attribute__((visibility(\"default\")))",
        "-fno-exceptions",
	"-fvisibility=hidden",
        "-Wall",
        "-Wextra",