Skip to content
Closed
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,13 @@ if hasArg --build-cuvs-java; then
LD_LIBRARY_PATH="$LIBCUVS_DIR/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"
export LD_LIBRARY_PATH
echo "LD_LIBRARY_PATH is: $LD_LIBRARY_PATH"
# Point cmake to the PR artifact so find_package(cuvs) picks up its headers
# instead of the conda-installed ones, ensuring jextract generates correct
# Panama bindings for any new C API in the PR.
export CMAKE_PREFIX_PATH="$LIBCUVS_DIR"
# Uninstall the conda-installed libcuvs so it cannot shadow the PR artifact
# at runtime.
conda remove --yes --force-remove libcuvs

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I understand the reasoning, but I'm hesitant to have a build.sh that modifies the environment in this manner. Perhaps it would be better to export cuvs_ROOT instead.

fi
./build.sh "${CUVS_BUILD_TARGETS[@]}"
popd
Expand Down