From b3e6304b2ea9575ff26d01133beb21bc092b4fe8 Mon Sep 17 00:00:00 2001 From: y Date: Thu, 2 Sep 2021 11:58:02 -0500 Subject: [PATCH] Workaround for running conda-build using Klocwork Workaround to Klocwork overwriting LD_LIBRARY_PATH that was modified by DPC++ compiler conda packages. Will need to be added to DPC++ compiler activation scripts. --- conda-recipe/build.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/conda-recipe/build.sh b/conda-recipe/build.sh index 6b5e9c0b12..37ae591486 100755 --- a/conda-recipe/build.sh +++ b/conda-recipe/build.sh @@ -1,5 +1,10 @@ #!/bin/bash +# Workaround to Klocwork overwriting LD_LIBRARY_PATH that was modified +# by DPC++ compiler conda packages. Will need to be added to DPC++ compiler +# activation scripts. +export LDFLAGS="$LDFLAGS -Wl,-rpath,$CONDA_PREFIX/lib" + ${PYTHON} setup.py clean --all INSTALL_CMD="install --sycl-compiler-prefix=$CONDA_PREFIX"