Revert "Fix: cross-compile crashes when combined with emit llvm-bc or obj (#17060)" (#17080)