Reverts llvm/llvm-project#76232 and 7ab16fb5 to recover build bots. Breaks libc++ tests, details in #76232 #76228