From d60c89a864b66f7fa94f24cf187bb7fe05b8a9f9 Mon Sep 17 00:00:00 2001 From: Anton Volkov Date: Fri, 17 Feb 2023 11:06:02 -0600 Subject: [PATCH] Intel LLVM is to use conda's gcc toolchain, sysroot and target libraries --- conda-recipe/build.sh | 5 +++++ 1 file changed, 5 insertions(+) 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