QT6DIR=$INSTALL_ROOT/opt/qt6
#QT6DIR="$INSTALL_ROOT/usr"
function default_build() {
# OPTS+=" -DCMAKE_UNITY_BUILD=true"
 OPTS+=" -DQT_UNITY_BUILD=true"
# check for AMD A10-5800K APU
  if `lscpu|grep -q 'AMD A10-5800K' > /dev/null`;then
    # qsimd wrongly thinksthis that this is haswell
    export CXXFLAGS=${CXXFLAGS/-march=native/} &&
    export CXXFLAGS=${CXXFLAGS/-tune=native/}
  fi &&
 echo CXX=$CXXFLAGS
 cmake_build $QT6DIR
}

function default_install() {
 mkdir -p $QT6DIR/bin

 cmake_install
# message "Proposed symlinks:"
# sed -i "s|^|\$TRACK_ROOT|;s| | \$INSTALL_ROOT|" user_facing_tool_links.txt
# cat user_facing_tool_links.txt
# xargs ln -s < user_facing_tool_links.txt
}
