Merge pull request #45579 from zaevi/add_scons_ext

add search extensions for Scons' path
This commit is contained in:
Rémi Verschelde 2021-02-01 20:41:25 +01:00 committed by GitHub
commit 74091a1974
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -68,7 +68,7 @@ android {
File sconsExecutableFile = null File sconsExecutableFile = null
def sconsName = "scons" def sconsName = "scons"
def sconsExts = (org.gradle.internal.os.OperatingSystem.current().isWindows() def sconsExts = (org.gradle.internal.os.OperatingSystem.current().isWindows()
? [".bat", ".exe"] ? [".bat", ".cmd", ".ps1", ".exe"]
: [""]) : [""])
logger.lifecycle("Looking for $sconsName executable path") logger.lifecycle("Looking for $sconsName executable path")
for (ext in sconsExts) { for (ext in sconsExts) {