diff --git a/conda-recipe/build.sh b/conda-recipe/build.sh index d873320f80f8..164ad09d578f 100644 --- a/conda-recipe/build.sh +++ b/conda-recipe/build.sh @@ -29,6 +29,11 @@ fi export CFLAGS="-Wl,-rpath,\$ORIGIN/../dpctl,-rpath,\$ORIGIN $CFLAGS" export LDFLAGS="-Wl,-rpath,\$ORIGIN/../dpctl,-rpath,\$ORIGIN $LDFLAGS" +# 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" + $PYTHON setup.py build_clib $PYTHON setup.py build_ext install