Skip to content

Commit

Permalink
De-hardcode natives build process Part 13
Browse files Browse the repository at this point in the history
  • Loading branch information
thecatcore committed May 28, 2024
1 parent 54c6b4c commit e2b52e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_or_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
msvc_arch: amd64_arm64
extra_java: 17
vendor: zulu
args: -DtargetArch=arm64 -DtargetJavaHomeVar=JAVA_HOME_17_ARM64
args: -DtargetArch=arm64 -DtargetJavaHome="$JAVA_HOME_17_ARM64"
- os: macos-13
arch: x64
args: -Dtarget.java.home="$JAVA_HOME_8_X64"
Expand Down
4 changes: 2 additions & 2 deletions gradle/windows.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ def target_arch = getArch(System.getProperty("targetArch", os_arch))

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

def alternative_java_home = System.getProperty("targetJavaHomeVar")
def alternative_java_home = System.getProperty("targetJavaHome")

if (alternative_java_home != null && alternative_java_home != "") {
java_home = ENV[alternative_java_home]
java_home = alternative_java_home
}

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

0 comments on commit e2b52e4

Please sign in to comment.