-
Notifications
You must be signed in to change notification settings - Fork 234
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[experimental] Add native lib for Linux loongarch64 (#526) #526
Conversation
Signed-off-by: Leslie Zhai <zhaixiang@loongson.cn>
Makefile
Outdated
@@ -240,6 +240,9 @@ linux-s390x: jni-header | |||
windows-aarch64: jni-header | |||
./docker/dockcross-windows-arm64 -a $(DOCKER_RUN_OPTS) bash -c 'make clean-native native CROSS_PREFIX=/usr/xcc/aarch64-w64-mingw32-cross/bin/aarch64-w64-mingw32- OS_NAME=Windows OS_ARCH=aarch64' | |||
|
|||
linux-loongarch64: jni-header | |||
./docker/dockcross-loongarch64 -a $(DOCKER_RUN_OPTS) bash -c 'make clean-native native CROSS_PREFIX=/usr/xcc/loongarch64-unknown-linux-gnu/bin/loongarch64-unknown-linux-gnu- OS_NAME=Linux OS_ARCH=loongarch64' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
./docker/dockcross-loongarch64 This file is missing. Could you add it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @xerial
Thanks for your careful review!
Sorry there is no dockcross for LoongArch64 right now.
Thanks,
Leslie Zhai
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok. If so I can't maintain LoongArch64 version for upcoming snappy-java versions. I'm not sure this is what you expect.
Makefile
Outdated
@@ -151,7 +151,7 @@ native: jni-header snappy-header $(NATIVE_DLL) | |||
native-nocmake: jni-header $(NATIVE_DLL) | |||
snappy: native $(TARGET)/$(snappy-jar-version).jar | |||
|
|||
native-all: native native-arm clean-docker mac64 win32 win64 linux32 linux64 linux-ppc64le linux-riscv64 linux-s390x | |||
native-all: native native-arm clean-docker mac64 win32 win64 linux32 linux64 linux-ppc64le linux-riscv64 linux-s390x linux-loongarch64 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If no dockcross image is available, I can't accept this change as CI will be broken. Could you revert this line?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
Thanks,
Leslie Zhai
Although I cannot guarantee the future support of loongarch64, adding these change itself for the next versionn or snapshot versions should have no harm. I'll merge them. Note. If you need to use loongarch64 in the future versions of snappy-java, you need to submit a PR like this again. |
Hi,
Passed test on loongarch64:
Please review my patch.
Thanks,
Leslie Zhai