summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbuild.py2
-rw-r--r--system/bta/gatt/database.cc1
-rw-r--r--system/bta/vc/devices.h1
3 files changed, 3 insertions, 1 deletions
diff --git a/build.py b/build.py
index e422f6acc4..2bffdc3182 100755
--- a/build.py
+++ b/build.py
@@ -333,7 +333,7 @@ class HostBuild():
'libbase_ver': self._get_basever(),
'enable_exceptions': os.environ.get('CXXEXCEPTIONS', 0) == '1',
'external_cflags': [],
- 'external_cxxflags': [],
+ 'external_cxxflags': ["-DNDEBUG"],
'enable_werror': False,
}
diff --git a/system/bta/gatt/database.cc b/system/bta/gatt/database.cc
index 433fd55ac0..184ff9223f 100644
--- a/system/bta/gatt/database.cc
+++ b/system/bta/gatt/database.cc
@@ -20,6 +20,7 @@
#include <base/logging.h>
+#include <algorithm>
#include <list>
#include <memory>
#include <sstream>
diff --git a/system/bta/vc/devices.h b/system/bta/vc/devices.h
index 71dc6c9e00..f2ce3014ba 100644
--- a/system/bta/vc/devices.h
+++ b/system/bta/vc/devices.h
@@ -17,6 +17,7 @@
#pragma once
+#include <algorithm>
#include <cstdint>
#include <unordered_set>
#include <vector>