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,