Enabling -debug and -debug-only flags in LLVM application

When I compiled clang, I made sure to enable it. The following piece of code is from my build script I use to generate different builds of clang:

#!/usr/bin/bash

# Usage: ./build.sh llvm-11 Debug /usr/local/dbg
#                      ^      ^          ^
#                   folder  type  CMAKE_INSTALL_PREFIX

mkdir -p build/$1 && cd build/$1
cmake -G Ninja \
      -DCMAKE_BUILD_TYPE=$2 \
      -DCMAKE_INSTALL_PREFIX=$3 \
      -DLLVM_ENABLE_ASSERTIONS=ON \
      -DLLVM_ENABLE_PROJECTS="clang" \
      -DLLVM_TARGETS_TO_BUILD="X86" \
      -DLLVM_PARALLEL_LINK_JOBS="1" \
      ../../llvm/

# Add the following lines for adding runtimes as well
#     -DLLVM_ENABLE_RUNTIMES="compiler-rt;libcxx;libcxxabi;libunwind" \
#     -DLLVM_RUNTIME_TARGETS="x86_64-pc-linux-gnu" \

And I call it via ./build.sh llvm-11 Debug /usr/local/dbg/