Skip to content
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

Merged
merged 3 commits into from
Dec 7, 2023
Merged

[experimental] Add native lib for Linux loongarch64 (#526) #526

merged 3 commits into from
Dec 7, 2023

Conversation

xiangzhai
Copy link
Contributor

Hi,

Passed test on loongarch64:

[info] Passed: Total 104, Failed 0, Errors 0, Passed 104, Ignored 1

Please review my patch.

Thanks,
Leslie Zhai

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'
Copy link
Owner

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?

Copy link
Contributor Author

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

Copy link
Owner

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.

@xiangzhai xiangzhai requested a review from xerial October 23, 2023 01:05
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
Copy link
Owner

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Thanks,
Leslie Zhai

@xiangzhai xiangzhai requested a review from xerial October 25, 2023 02:12
@xerial
Copy link
Owner

xerial commented Dec 7, 2023

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.

@xerial xerial merged commit bce1ff6 into xerial:master Dec 7, 2023
8 checks passed
@xerial xerial added the feature label Dec 7, 2023
@xerial xerial changed the title Build on loongarch64 [experimental] Add native lib for Linux loongarch64 (#526) Dec 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants