Move WITH_DEXPREOPT default value
This allows setting the variable READONLY after reading the BoardConfig.
This is safe to do because this flag is only set in BoardConfig.mk
files. The same is not true for many of the other default preopt flags,
like DEX_PREOPT_DEFAULT or WITH_DEXPREOPT_BOOT_IMG_AND_SYSTEM_SERVER_ONLY
which are set in mixture of product / board config files.
Test: boot blueline
Change-Id: I961ba581f9790bcdc7cf6b36d8b53bcdb8861a92
diff --git a/core/board_config.mk b/core/board_config.mk
index 1e0e9e1..528c133 100644
--- a/core/board_config.mk
+++ b/core/board_config.mk
@@ -19,6 +19,11 @@
# and sanity-checks the variable defined therein.
# ###############################################################
+# Conditional to building on linux, as dex2oat currently does not work on darwin.
+ifeq ($(HOST_OS),linux)
+ WITH_DEXPREOPT := true
+endif
+
# ###############################################################
# Broken build defaults
# ###############################################################