From c55a2fbcb35ee3ef21b6ba58df869f91a82ffe41 Mon Sep 17 00:00:00 2001 From: Bernard Ladenthin Date: Tue, 22 Sep 2026 00:02:07 +0200 Subject: [PATCH] llama/pom.xml: write JNI headers relative to the module, not the cwd The 16 classifier-profile compile executions (cuda, opencl-android, windows-msvc, vulkan-*, rocm-*, sycl-*, openvino-*, ...) passed `-h src/main/cpp`, which javac resolves against the process working directory. Building the core from the repository root (`mvn -pl llama -am ... -P vulkan-windows`) therefore wrote net_ladenthin_llama_*.h into ./src/main/cpp at the root -- untracked files outside the module -- instead of llama/src/main/cpp, where .gitignore expects them. They now use ${project.basedir}/src/main/cpp. Verified: `mvn -pl llama -am clean compile -P vulkan-windows` from the root puts all five headers into llama/src/main/cpp and creates no ./src. Co-Authored-By: Claude Opus 5 (1M context) Claude-Session: https://claude.ai/code/session_01E2h8gXyyE5UeimkL9vQv9G --- llama/pom.xml | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/llama/pom.xml b/llama/pom.xml index 682c83a2..9a43bcf7 100644 --- a/llama/pom.xml +++ b/llama/pom.xml @@ -905,7 +905,7 @@ SPDX-License-Identifier: MIT -h - src/main/cpp + ${project.basedir}/src/main/cpp ${project.build.outputDirectory}_cuda @@ -986,7 +986,7 @@ SPDX-License-Identifier: MIT -h - src/main/cpp + ${project.basedir}/src/main/cpp ${project.build.outputDirectory}_opencl_android @@ -1075,7 +1075,7 @@ SPDX-License-Identifier: MIT -h - src/main/cpp + ${project.basedir}/src/main/cpp ${project.build.outputDirectory}_windows_msvc @@ -1159,7 +1159,7 @@ SPDX-License-Identifier: MIT -h - src/main/cpp + ${project.basedir}/src/main/cpp ${project.build.outputDirectory}_windows_cuda @@ -1240,7 +1240,7 @@ SPDX-License-Identifier: MIT -h - src/main/cpp + ${project.basedir}/src/main/cpp ${project.build.outputDirectory}_windows_vulkan @@ -1321,7 +1321,7 @@ SPDX-License-Identifier: MIT -h - src/main/cpp + ${project.basedir}/src/main/cpp ${project.build.outputDirectory}_linux_vulkan @@ -1403,7 +1403,7 @@ SPDX-License-Identifier: MIT -h - src/main/cpp + ${project.basedir}/src/main/cpp ${project.build.outputDirectory}_linux_vulkan_aarch64 @@ -1487,7 +1487,7 @@ SPDX-License-Identifier: MIT -h - src/main/cpp + ${project.basedir}/src/main/cpp ${project.build.outputDirectory}_windows_opencl @@ -1566,7 +1566,7 @@ SPDX-License-Identifier: MIT -h - src/main/cpp + ${project.basedir}/src/main/cpp ${project.build.outputDirectory}_linux_rocm @@ -1644,7 +1644,7 @@ SPDX-License-Identifier: MIT -h - src/main/cpp + ${project.basedir}/src/main/cpp ${project.build.outputDirectory}_windows_rocm @@ -1722,7 +1722,7 @@ SPDX-License-Identifier: MIT -h - src/main/cpp + ${project.basedir}/src/main/cpp ${project.build.outputDirectory}_linux_sycl_fp16 @@ -1800,7 +1800,7 @@ SPDX-License-Identifier: MIT -h - src/main/cpp + ${project.basedir}/src/main/cpp ${project.build.outputDirectory}_linux_sycl_fp32 @@ -1878,7 +1878,7 @@ SPDX-License-Identifier: MIT -h - src/main/cpp + ${project.basedir}/src/main/cpp ${project.build.outputDirectory}_windows_sycl @@ -1958,7 +1958,7 @@ SPDX-License-Identifier: MIT -h - src/main/cpp + ${project.basedir}/src/main/cpp ${project.build.outputDirectory}_windows_opencl_aarch64 @@ -2036,7 +2036,7 @@ SPDX-License-Identifier: MIT -h - src/main/cpp + ${project.basedir}/src/main/cpp ${project.build.outputDirectory}_linux_openvino @@ -2114,7 +2114,7 @@ SPDX-License-Identifier: MIT -h - src/main/cpp + ${project.basedir}/src/main/cpp ${project.build.outputDirectory}_windows_openvino