FASTBuild: Fix precompiled headers with clang-cl
For the MSVC-like compiler families, FASTBuild takes the object file of
the PCH compile from its object output option in .PCHOptions, where %2
is the PCH itself and %3 names the object (FunctionObjectList's
CheckMSVCPCHFlags_Create, for MSVC and clang-cl alike). The compile
rule's object output option names placeholder 2, which we replaced with
placeholder 3 only when the compiler ID was MSVC. clang-cl's ID is
Clang, so its PCH compile wrote its object file over the PCH it had just
written, and the compiles using the PCH rejected it as too small to
contain the precompiled file magic.
Replace the placeholder for the msvc and clang-cl compiler families, as
the generator has determined them for the .bff, and run the
PrecompileHeaders tests in the clang-cl FASTBuild CI job again.
Issue: #27697
2 files changed