[llvm-rc] Remove transitional preprocessing fallback logic
authorMartin Storsjö <martin@martin.st>
Fri, 24 Mar 2023 10:06:24 +0000 (12:06 +0200)
committerMartin Storsjö <martin@martin.st>
Tue, 28 Mar 2023 08:02:43 +0000 (11:02 +0300)
commitdc41f387e357d87117b29e0da9e741be6884287c
tree152d4a88e433a2cc49cfa7ebf61da5cebe288b91
parent014e5c8d39c172a5b4bb1e1c75ced9bcb9ff2115
[llvm-rc] Remove transitional preprocessing fallback logic

When preprocessing was integrated to llvm-rc in 2021, this was a
new requirement (previously one could execute llvm-rc without a
suitable preprocessing tool to be available).

As a transitional helper, llvm-rc fell back on skipping preprocessing
if no suitable tool was found (with a warning printed), but users
could pass an llvm-rc specific option to silence the warning, if they
explicitly want to run the tool without preprocessing.

Now 2 years later, remove the transitional helper - error out if
preprocessing failed. The option for disabling preprocessing remains.

Differential Revision: https://reviews.llvm.org/D146797
llvm/tools/llvm-rc/llvm-rc.cpp