From 5441a4b9d73e7d7ca8bdd9b8122dcb8f108148f5 Mon Sep 17 00:00:00 2001 From: Ilia Burdukovski Date: Wed, 25 Sep 2019 12:31:08 +0800 Subject: [PATCH] fix build with hermes on windows --- react.gradle | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/react.gradle b/react.gradle index 14f07461daaed6..29972d1b981cca 100644 --- a/react.gradle +++ b/react.gradle @@ -149,7 +149,12 @@ afterEvaluate { hermesFlags = config.hermesFlagsDebug if (hermesFlags == null) hermesFlags = [] } - commandLine(getHermesCommand(), "-emit-binary", "-out", hbcTempFile, jsBundleFile, *hermesFlags) + + if (Os.isFamily(Os.FAMILY_WINDOWS)) { + commandLine("cmd", "/c", getHermesCommand(), "-emit-binary", "-out", hbcTempFile, jsBundleFile, *hermesFlags) + } else { + commandLine(getHermesCommand(), "-emit-binary", "-out", hbcTempFile, jsBundleFile, *hermesFlags) + } } ant.move( file: hbcTempFile,