Skip to content

Commit

Permalink
Build script updates
Browse files Browse the repository at this point in the history
  • Loading branch information
jjlauer committed Oct 23, 2023
1 parent 29643b1 commit f20d7f5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
4 changes: 2 additions & 2 deletions setup/blaze.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,13 @@ public class blaze {
// OpenBSD
//

new Target("openbsd", "x64")
/*new Target("openbsd", "x64")
.setTags("build", "test")
.setHost("bmh-build-x64-openbsd67-1"),
new Target("openbsd", "arm64")
.setTags("build", "test")
.setHost("bmh-build-arm64-openbsd72-1"),
.setHost("bmh-build-arm64-openbsd72-1"),*/

//
// MacOS
Expand Down
2 changes: 1 addition & 1 deletion setup/build-container-action.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ if [ ! -z "$(echo $BUILDARCH | grep "\-test")" ]; then
fi
fi

docker build -f "$DOCKERFILE" --progress=plain \
docker build -f "$DOCKERFILE" \
--build-arg "FROM_IMAGE=${DOCKER_IMAGE}" \
--build-arg USERID=${USERID} \
--build-arg USERNAME=${USERNAME} \
Expand Down
7 changes: 6 additions & 1 deletion src/main/java/com/fizzed/jne/Options.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,12 @@ public Options() {
// defaults
this.operatingSystem = PlatformInfo.detectOperatingSystem();
this.hardwareArchitecture = PlatformInfo.detectHardwareArchitecture();
this.linuxLibC = PlatformInfo.detectLinuxLibC();
// we only need to detect libc for linux
if (this.operatingSystem == OperatingSystem.LINUX) {
this.linuxLibC = PlatformInfo.detectLinuxLibC();
} else {
this.linuxLibC = null;
}
this.resourcePrefix = System.getProperty(SYSPROP_RESOURCE_PREFIX, "/jne");
this.extractDir = getSystemPropertyAsFile(SYSPROP_EXTRACT_DIR, null);
this.x32ExecutableFallback = getSystemPropertyAsBoolean(SYSPROP_X32_EXE_FALLBACK, true);
Expand Down

0 comments on commit f20d7f5

Please sign in to comment.