Skip to content

Commit

Permalink
De-hardcode natives build process Part 11
Browse files Browse the repository at this point in the history
  • Loading branch information
thecatcore committed May 28, 2024
1 parent 8efbd11 commit 6a289a4
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions gradle/windows.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,10 @@ def target_arch = getArch(System.getProperty("targetArch", os_arch))

def java_home = System.getProperty("java.home")

System.properties.forEach {
println("${it}")
}
def alternative_java_home = ENV[System.getProperty("targetJavaHomeVar")]

if (System.hasProperty("targetJavaHomeVar")) {
java_home = ENV[System.getProperty("targetJavaHomeVar")]
if (alternative_java_home != null && alternative_java_home != "") {
java_home = alternative_java_home
}

def sdkhome = ENV.VCToolsInstallDir ? ENV.VCToolsInstallDir : ENV.MSVC
Expand Down

0 comments on commit 6a289a4

Please sign in to comment.