Skip to content

Commit 8b16bcd

Browse files
Use compiler CFG files for Intel LLVM to use conda's sysroot and toolchain
1 parent b1ee6d1 commit 8b16bcd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

conda-recipe/build.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@
55
# activation scripts.
66
export LDFLAGS="$LDFLAGS -Wl,-rpath,$PREFIX/lib"
77

8+
# Intel LLVM must cooperate with compiler and sysroot from conda
9+
echo "--gcc-toolchain=$PREFIX --sysroot=$PREFIX/$HOST/sysroot -target $HOST" > icpx_for_conda.cfg
10+
export ICPXCFG=$(pwd)/icpx_for_conda.cfg
11+
export ICPCFG=$(pwd)/icpx_for_conda.cfg
12+
813
if [ -e "_skbuild" ]; then
914
${PYTHON} setup.py clean --all
1015
fi
1116
export CMAKE_GENERATOR="Ninja"
1217
SKBUILD_ARGS="-- -DCMAKE_C_COMPILER:PATH=icx -DCMAKE_CXX_COMPILER:PATH=icpx"
1318
echo "${PYTHON} setup.py install ${SKBUILD_ARGS}"
1419

15-
# Workaround for:
16-
# DPC++ launched by cmake does not see components of `dpcpp_cpp_rt`,
17-
# because conda build isolates LD_LIBRARY_PATH to only $PREFIX subfolders.
18-
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:$BUILD_PREFIX/lib
19-
2020
if [ -n "${WHEELS_OUTPUT_FOLDER}" ]; then
2121
# Install packages and assemble wheel package from built bits
2222
if [ "$CONDA_PY" == "36" ]; then

0 commit comments

Comments
 (0)