This allows using lit substitutions in the COMPILER_RT_EMULATOR variable.
The main motivation for this change is using the [ssh.py script from libc++](https://github.com/llvm/llvm-project/blob/master/libcxx/utils/ssh.py) as COMPILER_RT_EMULATOR to copy a test file to the remote machine and execute it there.
This script requires us to pass it the --execdir option with a path that is essentially %T. Then, in my CMake cache file I can just do:
set(COMPILER_RT_EMULATOR "\\\"${Python3_EXECUTABLE}\\\" \\\"${LLVM_PROJECT_DIR}/libcxx/utils/ssh.py\\\" --execdir %%T --host ${REMOTE_TEST_USER}@${REMOTE_TEST_HOST} --" CACHE STRING "")
(For reference, the ability to expand substitutions recursively has been introduced in D76178.)