[compiler-rt] [asm][ie86-x86-64] Fix build error (PR #164532)
    Walter Lee via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Tue Oct 21 19:01:37 PDT 2025
    
    
  
https://github.com/googlewalt created https://github.com/llvm/llvm-project/pull/164532
Fixes #164453.
>From 42d617fea2a2125bf72fe7d2350ec6e1a18c32d6 Mon Sep 17 00:00:00 2001
From: Walter Lee <waltl at google.com>
Date: Tue, 21 Oct 2025 21:59:33 -0400
Subject: [PATCH] [asm][ie86-x86-64] Fix build error
Fixes #164453.
---
 compiler-rt/lib/builtins/assembly.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/compiler-rt/lib/builtins/assembly.h b/compiler-rt/lib/builtins/assembly.h
index 79a45d9143b40..e28fff716e296 100644
--- a/compiler-rt/lib/builtins/assembly.h
+++ b/compiler-rt/lib/builtins/assembly.h
@@ -337,7 +337,8 @@
 #endif
 #endif
 
-#if defined(__i386__) || defined(__amd64__)
+
+#if defined(__ASSEMBLER__) && (defined(__i386__) || defined(__amd64__))
 .att_syntax
 #endif
 
    
    
More information about the llvm-commits
mailing list