remove cmake options CMAKE_C_COMPILER CMAKE_CXX_COMPILER, and LLVM_ENABLE_ASSERTIONS
@@ -72,7 +72,7 @@ fi
COMPILERS="-DCMAKE_C_COMPILER=$GCCLOC -DCMAKE_CXX_COMPILER=$GXXLOC"
GFXSEMICOLONS=`echo $GFXLIST | tr ' ' ';' `
-MYCMAKEOPTS="-DCMAKE_INSTALL_RPATH_USE_LINK_PATH=ON -DCMAKE_INSTALL_RPATH=$AOMP_INSTALL_DIR/lib:$AOMP_INSTALL_DIR/hcc/lib -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_INSTALL_PREFIX=$INSTALL_HCC -DLLVM_ENABLE_ASSERTIONS=ON -DHSA_AMDGPU_GPU_TARGET=$GFXSEMICOLONS $COMPILERS -DHSA_HEADER_DIR=$AOMP_INSTALL_DIR/hsa/include -DHSA_LIBRARY_DIR=$AOMP_INSTALL_DIR/hsa/lib -DCLANG_ANALYZER_ENABLE_Z3_SOLVER=OFF -DLLVM_INCLUDE_BENCHMARKS=OFF"
+MYCMAKEOPTS="-DROCM_ROOT=$AOMP_INSTALL_DIR -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=ON -DCMAKE_INSTALL_RPATH=$AOMP_INSTALL_DIR/lib:$AOMP_INSTALL_DIR/hcc/lib -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_INSTALL_PREFIX=$INSTALL_HCC -DHSA_AMDGPU_GPU_TARGET=$GFXSEMICOLONS -DHSA_HEADER_DIR=$AOMP_INSTALL_DIR/hsa/include -DHSA_LIBRARY_DIR=$AOMP_INSTALL_DIR/hsa/lib -DCLANG_ANALYZER_ENABLE_Z3_SOLVER=OFF -DLLVM_INCLUDE_BENCHMARKS=OFF"
# -DLLVM_TARGETS_TO_BUILD=$TARGETS_TO_BUILD
# For now build hcc with ROCDL. because using the AOMP libdevice
@@ -122,6 +122,7 @@ if [ ! -z `which "getconf"` ]; then
fi
fi
+
if [ "$1" != "nocmake" ] && [ "$1" != "install" ] ; then
# When build_hcc.sh is run with no args, start fresh and clean out the build directory.
echo
