diff --git a/conda-recipe/build.sh b/conda-recipe/build.sh index 951e76366b..4520fcd607 100755 --- a/conda-recipe/build.sh +++ b/conda-recipe/build.sh @@ -5,6 +5,11 @@ # activation scripts. export LDFLAGS="$LDFLAGS -Wl,-rpath,$PREFIX/lib" +# Intel LLVM must cooperate with compiler and sysroot from conda +echo "--gcc-toolchain=${BUILD_PREFIX} --sysroot=${BUILD_PREFIX}/${HOST}/sysroot -target ${HOST}" > icpx_for_conda.cfg +export ICPXCFG="$(pwd)/icpx_for_conda.cfg" +export ICXCFG="$(pwd)/icpx_for_conda.cfg" + if [ -e "_skbuild" ]; then ${PYTHON} setup.py clean --all fi @@ -12,11 +17,6 @@ export CMAKE_GENERATOR="Ninja" SKBUILD_ARGS="-- -DCMAKE_C_COMPILER:PATH=icx -DCMAKE_CXX_COMPILER:PATH=icpx" echo "${PYTHON} setup.py install ${SKBUILD_ARGS}" -# Workaround for: -# DPC++ launched by cmake does not see components of `dpcpp_cpp_rt`, -# because conda build isolates LD_LIBRARY_PATH to only $PREFIX subfolders. -export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:$BUILD_PREFIX/lib - if [ -n "${WHEELS_OUTPUT_FOLDER}" ]; then # Install packages and assemble wheel package from built bits if [ "$CONDA_PY" == "36" ]; then diff --git a/conda-recipe/meta.yaml b/conda-recipe/meta.yaml index 72601ddd2f..b770b43b5e 100644 --- a/conda-recipe/meta.yaml +++ b/conda-recipe/meta.yaml @@ -12,6 +12,7 @@ build: requirements: build: + - {{ compiler('c') }} - {{ compiler('cxx') }} - {{ compiler('dpcpp') }} >=2022.1 # [not osx] host: