[clang] [llvm] [Triple] Make an target triple "os" for firmware (PR #176272)

Ian Anderson via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 20 10:58:33 PST 2026


================
@@ -893,6 +901,8 @@ class Triple {
 
   bool isOSManagarm() const { return getOS() == Triple::Managarm; }
 
+  bool isOSFirmware() const { return getOS() == Triple::Firmware; }
----------------
ian-twilightcoder wrote:

There's an `isOSFirmware` and `isAppleFirmware`. The former is used to gate `TARGET_OS_FIRMWARE` and the latter is for the Apple specific parts.

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


More information about the cfe-commits mailing list