Skip to content

Commit

Permalink
fixing hermes-engine issues while running under windows
Browse files Browse the repository at this point in the history
  • Loading branch information
zenz authored Aug 16, 2019
1 parent 6991e28 commit ee82182
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion react.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,11 @@ 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,
Expand Down

0 comments on commit ee82182

Please sign in to comment.