Skip to content

Commit

Permalink
Add some guidance for outdated Clang versions on ARM
Browse files Browse the repository at this point in the history
  • Loading branch information
Sainan committed Nov 29, 2024
1 parent 87b60c9 commit a1a1d07
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions soup/base.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@

#if defined(__arm__) || defined(__aarch64__) || defined(_M_ARM) || defined(_M_ARM64)
#define SOUP_ARM true
#if defined(__clang_major__) && __clang_major__ <= 14 && !defined(__ARM_FEATURE_CRYPTO)
#error Your version of Clang predates some important fixes for ARM codegen. Provide -march=armv8+crypto+crc to compile Soup. Note that the resulting binary may be incorrect.
#endif
#else
#define SOUP_ARM false
#endif
Expand Down

0 comments on commit a1a1d07

Please sign in to comment.