Add a compile-time constant bool equivalent to !defined(NDEBUG).
This makes some code slightly less awkward.
Change-Id: Iafd359dd0baa65510ed9510a7d93ee01605f51e4
diff --git a/src/compiler.cc b/src/compiler.cc
index 4d39cd7..6618dea 100644
--- a/src/compiler.cc
+++ b/src/compiler.cc
@@ -256,11 +256,7 @@
// Bad things happen if we pull in the libartd-compiler to a libart dex2oat or vice versa,
// because we end up with both libart and libartd in the same address space!
-#ifndef NDEBUG
- const char* suffix = "d";
-#else
- const char* suffix = "";
-#endif
+ const char* suffix = (kIsDebugBuild ? "d" : "");
// Work out the filename for the compiler library.
#if !defined(ART_USE_LLVM_COMPILER)