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

Fangrui Song via cfe-commits cfe-commits at lists.llvm.org
Sat Jan 17 17:47:33 PST 2026


================
@@ -356,13 +356,17 @@ class LLVM_LIBRARY_VISIBILITY Darwin : public AppleMachO {
   mutable bool TargetInitialized;
 
   enum DarwinPlatformKind {
+    // Platforms with associated *_DEPLOYMENT_TARGET environment variables.
     MacOS,
     IPhoneOS,
     TvOS,
     WatchOS,
     DriverKit,
     XROS,
-    LastDarwinPlatform = XROS
+    LastDarwinPlatform = XROS,
+
+    // Additional platforms.
+    Firmware,
----------------
MaskRay wrote:

Adding `Firmware` after `LastDarwinPlatform` is pretty strange. Needs a detailed explanation

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


More information about the cfe-commits mailing list