Skip to content

Commit 5183171

Browse files
committed
[compiler-rt] Fix building for arm64ec
c208a23 added the directive `.att_syntax` when building for x86 architectures. However, when building for arm64ec (a Windows target, for an ABI compatible with x86_64), the defines for `__x86_64__` (and similar ones like `__amd64__`) are still defined, so we need to check for `__arm64ec__` here as well to skip it for such targets. This matches similar existing ifdefs for x86_64/aarch64 in compiler-rt builtins.
1 parent e83eee3 commit 5183171

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler-rt/lib/builtins/assembly.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@
337337
#endif
338338
#endif
339339

340-
#if defined(__ASSEMBLER__) && (defined(__i386__) || defined(__amd64__))
340+
#if defined(__ASSEMBLER__) && (defined(__i386__) || defined(__amd64__)) && !defined(__arm64ec__)
341341
.att_syntax
342342
#endif
343343

0 commit comments

Comments
 (0)