RFR: Add support for Linux/AArch64
Jorn Vernee
jvernee at openjdk.org
Fri Sep 6 19:28:50 UTC 2024
On Fri, 6 Sep 2024 19:22:07 GMT, Jorn Vernee <jvernee at openjdk.org> wrote:
> Currently we don't support jextract on Linux/AArch64, but have had some request to add support. This PR contains changes to make that work.
>
> I've added a build script for the libclang bundle, which is loosely based on the old build script we had in the JDK repo, that can be used to create a libclang bundle. (and which I did in fact use to create the libclang bundle for aarch64). I've only tested this script on Linux/AArch64, but have included configurations for mac/linux x64/aarch64 as well.
test/test-support/CMakeLists.txt line 6:
> 4: option(TEST_SOURCE_ROOT "src directory with test files")
> 5:
> 6: file(GLOB_RECURSE TEST_LIBS ${TEST_SOURCE_ROOT}/*lib*.c)
This was looking in the repo root directory for test libraries. Likely a leftover from when we had a different repo structure. I've changed it to just look in the test directory.
This was causing issues after building the libclang bundle, as this was finding the llvm and clang source files as well.
-------------
PR Review Comment: https://git.openjdk.org/jextract/pull/258#discussion_r1747616986
More information about the jextract-dev
mailing list