after learning how find_package works, we better set LLVM_DIR for when rocdl does find_package(LLVM ... Maybe this will help with Rich's build problem
@@ -36,14 +36,15 @@ SKIPTEST=${SKIPTEST:-"YES"}
INSTALL_ROOT_DIR=${INSTALL_LIBDEVICE:-$AOMP_INSTALL_DIR}
INSTALL_DIR=$INSTALL_ROOT_DIR
-LLVM_BUILD=$AOMP
+export LLVM_DIR=$AOMP_INSTALL_DIR
+export LLVM_BUILD=$AOMP_INSTALL_DIR
SOURCEDIR=$AOMP_REPOS/$AOMP_LIBDEVICE_REPO_NAME
REPO_BRANCH=$AOMP_LIBDEVICE_REPO_BRANCH
REPO_DIR=$AOMP_REPOS/$AOMP_LIBDEVICE_REPO_NAME
checkrepo
-MYCMAKEOPTS="-DLLVM_DIR=$LLVM_BUILD -DBUILD_HC_LIB=ON -DROCM_DEVICELIB_INCLUDE_TESTS=OFF"
+MYCMAKEOPTS="-DLLVM_DIR=$LLVM_DIR -DBUILD_HC_LIB=ON -DROCM_DEVICELIB_INCLUDE_TESTS=OFF"
if [ ! -d $AOMP_INSTALL_DIR/lib ] ; then
echo "ERROR: Directory $AOMP/lib is missing"
