Permalink
Browse files

dex2oat: disable multithreading for WSL

* In its current state, WSL does not support dex2oat multithreading

Change-Id: I325d7f3428d74cb7a4845ef9cf339115a36ce832
  • Loading branch information...
Uldiniad authored and luca020400 committed May 10, 2018
1 parent ecf6137 commit 17bc5883d52f25416cc2a9ebcd276c1f3e8f37da
Showing with 4 additions and 0 deletions.
  1. +4 −0 core/dex_preopt_libart.mk
@@ -147,10 +147,14 @@ endif
# $(1): the input .jar or .apk file
# $(2): the output .odex file
ifeq ($(HOST_OS_IS_WSL),true)
SINGLE_THREAD := "-j1"
endif
define dex2oat-one-file
$(hide) rm -f $(2)
$(hide) mkdir -p $(dir $(2))
$(hide) ANDROID_LOG_TAGS="*:e" $(DEX2OAT) \
$(SINGLE_THREAD) \
--runtime-arg -Xms$(DEX2OAT_XMS) --runtime-arg -Xmx$(DEX2OAT_XMX) \
--class-loader-context=$(DEX2OAT_CLASS_LOADER_CONTEXT) \
--boot-image=$(PRIVATE_DEX_PREOPT_IMAGE_LOCATION) \

0 comments on commit 17bc588

Please sign in to comment.