[clang] [clang] Implement -fstrict-bool (PR #116732)
Devin Coughlin via cfe-commits
cfe-commits at lists.llvm.org
Tue Dec 3 09:12:03 PST 2024
================
@@ -6052,6 +6054,10 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
if (!RawTriple.isOSDarwin() && !RawTriple.isNVPTX())
CmdArgs.push_back("-mconstructor-aliases");
+ // Assume -fno-strict-bool in the Darwin kernel.
+ if (KernelOrKext)
----------------
devincoughlin wrote:
For this you should also add a Driver test that confirms that the flag is passed to the fronted when the driver is passed -mkernel or -fapple-kext.
https://github.com/llvm/llvm-project/pull/116732
More information about the cfe-commits
mailing list