Skip to content

Commit 7353507

Browse files
committed
builtins: replicate aarch64.c change into aarch64.h
Perform the same macro expansion in the header to improve handling the various ARM64 environments which use different CPU architecture identification macro spellings.
1 parent e42f473 commit 7353507

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler-rt/lib/builtins/cpu_model/aarch64.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
#include "cpu_model.h"
1010

11-
#if !defined(__aarch64__)
11+
#if !defined(__aarch64__) && !defined(__arm64__) && !defined(_M_ARM64)
1212
#error This file is intended only for aarch64-based targets
1313
#endif
1414

0 commit comments

Comments
 (0)