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