[clang] [lld] [clang][Fuchsia] Enable branch target protection by default (PR #236000)

Fangrui Song via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 3 22:16:25 PST 2026


================
@@ -401,9 +401,16 @@ static void checkOptions(Ctx &ctx) {
       ErrAlways(ctx) << "-z zicfiss is only supported on RISC-V targets";
   }
 
-  if (ctx.arg.emachine != EM_386 && ctx.arg.emachine != EM_X86_64 &&
-      ctx.arg.zCetReport != ReportPolicy::None)
-    ErrAlways(ctx) << "-z cet-report only supported on X86 and X86_64";
+  if (ctx.arg.emachine != EM_386 && ctx.arg.emachine != EM_X86_64) {
----------------
MaskRay wrote:

The lld/ changes should be split off.

https://github.com/llvm/llvm-project/pull/236000


More information about the cfe-commits mailing list