Added in logic to build_fixups, to copy over hipcc into /opt/rocm/aomp/lib for non-standalone build because the we will not be building vdi components.
@@ -75,4 +75,22 @@ $SUDO rm -rf $AOMP/hcc/lib/libRemarks*
#Clean src
$SUDO rm -rf $AOMP/src
+#copy in hipcc for non-standalone build
+if [ -a $AOMP/bin/hipcc ]; then
+ echo "hipcc already found in AOMP/bin"
+else
+ echo "Copying hipcc and hipconfig from HIP dir for non-standalone build..."
+ cp $ROCM_DIR/hip/bin/hipcc $AOMP/bin
+ cp $ROCM_DIR/hip/bin/hipconfig $AOMP/bin
+ echo "Modify hipcc to support AOMP..."
+ SED_INSTALL_DIR=`echo '$ENV{\"AOMP\"}' | sed -e 's/\//\\\\\//g' `
+ $SUDO sed -i -e "s/\"\/opt\/rocm\"\/llvm/$SED_INSTALL_DIR/" $AOMP/bin/hipcc
+ $SUDO sed -i -e "s/\$HIP_CLANG_PATH=\$ENV{'HIP_CLANG_PATH'}/\$HIP_CLANG_PATH=$SED_INSTALL_DIR \. \'\/bin\'/" $AOMP/bin/hipcc
+ $SUDO sed -i -e "s/ -D_OPENMP //" $AOMP/bin/hipcc
+ $SUDO sed -i -e "s/\"\/opt\/rocm\"\/llvm/$SED_INSTALL_DIR/" $AOMP/bin/hipconfig
+ $SUDO sed -i -e "s/\$HIP_CLANG_PATH=\$ENV{'HIP_CLANG_PATH'}/\$HIP_CLANG_PATH=$SED_INSTALL_DIR \. \'\/bin\'/" $AOMP/bin/hipconfig
+ $SUDO sed -i -e "s/\"\/opt\/rocm\"/$SED_INSTALL_DIR/" $AOMP/bin/hipconfig
+ $SUDO sed -i -e "s/\"\$0\/\.\.\//\"\$0\/\.\.\/\.\.\//" $AOMP/bin/hipconfig
+fi
+
echo "Done with $0"
