Skip to content

Commit

Permalink
make: Fix support for arm64 JAVA_IDENTIFIER
Browse files Browse the repository at this point in the history
  • Loading branch information
Mizux committed Aug 8, 2022
1 parent 4ba9f17 commit 98d49eb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
12 changes: 10 additions & 2 deletions makefiles/Makefile.java.mk
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,18 @@ ifeq ($(OS),Windows)
JAVA_NATIVE_IDENTIFIER := win32-x86-64
else
ifeq ($(OS),Linux)
JAVA_NATIVE_IDENTIFIER := linux-x86-64
ifeq ($(CPU),aarch64)
JAVA_NATIVE_IDENTIFIER := linux-aarch64
else
JAVA_NATIVE_IDENTIFIER := linux-x86-64
endif
else
ifeq ($(OS),Darwin)
JAVA_NATIVE_IDENTIFIER := darwin-x86-64
ifeq ($(CPU),arm64)
JAVA_NATIVE_IDENTIFIER := darwin-aarch64
else
JAVA_NATIVE_IDENTIFIER := darwin-x86-64
endif
else
$(error OS unknown !)
endif
Expand Down
2 changes: 2 additions & 0 deletions makefiles/Makefile.port.mk
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ endif
ifneq ($(PLATFORM),WIN64)
OR_TOOLS_TOP ?= $(shell pwd)
OS = $(shell uname -s)
CPU = $(shell uname -m)
PYTHON_VERSION ?= $(shell python3 -c "from sys import version_info as v; print (str(v[0]) + '.' + str(v[1]))")
CMAKE_PLATFORM = "Unix Makefiles"

Expand Down Expand Up @@ -322,6 +323,7 @@ detect_port:
@echo OR_TOOLS_TOP = $(OR_TOOLS_TOP)
@echo SHELL = $(SHELL)
@echo OS = $(OS)
@echo CPU = $(CPU)
@echo PLATFORM = $(PLATFORM)
@echo PORT = $(PORT)
@echo OR_TOOLS_MAJOR = $(OR_TOOLS_MAJOR)
Expand Down

0 comments on commit 98d49eb

Please sign in to comment.