Skip to content

Commit 8e63098

Browse files
Merge pull request #1072 from IntelPython/conda-build-sh-cfg
Intel LLVM is to use conda's gcc toolchain, sysroot and target libraries
2 parents b1ee6d1 + 885b2a3 commit 8e63098

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-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=${BUILD_PREFIX} --sysroot=${BUILD_PREFIX}/${HOST}/sysroot -target ${HOST}" > icpx_for_conda.cfg
10+
export ICPXCFG="$(pwd)/icpx_for_conda.cfg"
11+
export ICXCFG="$(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

conda-recipe/meta.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ build:
1212

1313
requirements:
1414
build:
15+
- {{ compiler('c') }}
1516
- {{ compiler('cxx') }}
1617
- {{ compiler('dpcpp') }} >=2022.1 # [not osx]
1718
host:

0 commit comments

Comments
 (0)