Skip to content

Commit 17bc588

Browse files
Uldiniadluca020400
authored andcommitted
dex2oat: disable multithreading for WSL
* In its current state, WSL does not support dex2oat multithreading Change-Id: I325d7f3428d74cb7a4845ef9cf339115a36ce832
1 parent ecf6137 commit 17bc588

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

core/dex_preopt_libart.mk

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,10 +147,14 @@ endif
147147

148148
# $(1): the input .jar or .apk file
149149
# $(2): the output .odex file
150+
ifeq ($(HOST_OS_IS_WSL),true)
151+
SINGLE_THREAD := "-j1"
152+
endif
150153
define dex2oat-one-file
151154
$(hide) rm -f $(2)
152155
$(hide) mkdir -p $(dir $(2))
153156
$(hide) ANDROID_LOG_TAGS="*:e" $(DEX2OAT) \
157+
$(SINGLE_THREAD) \
154158
--runtime-arg -Xms$(DEX2OAT_XMS) --runtime-arg -Xmx$(DEX2OAT_XMX) \
155159
--class-loader-context=$(DEX2OAT_CLASS_LOADER_CONTEXT) \
156160
--boot-image=$(PRIVATE_DEX_PREOPT_IMAGE_LOCATION) \

0 commit comments

Comments
 (0)