Skip to content

Commit

Permalink
Remove UNSUPPORTED_PLATFORM_ARM
Browse files Browse the repository at this point in the history
  • Loading branch information
animetosho committed May 18, 2024
1 parent 7e5bdef commit 7565afd
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
7 changes: 0 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,13 +124,6 @@ def build_extension(self, ext: Extension):
# Verify specific flags for ARM chips
# macOS M1 do not need any flags, they support everything
if IS_ARM and not IS_MACOS:
if not autoconf_check(self.compiler, include_check="sys/auxv.h"):
# We only tested this for GCC, might still be valid on MS-ARM compiler (see #38)
if autoconf_check(self.compiler, define_check="__GNUC__"):
log.info("==> On GGC and sys/auxv.h not available, setting UNSUPPORTED_PLATFORM_ARM=1")
ext.define_macros.append(("UNSUPPORTED_PLATFORM_ARM", "1"))
gcc_macros.append(("UNSUPPORTED_PLATFORM_ARM", "1"))
IS_ARM = False
if not autoconf_check(self.compiler, define_check="__aarch64__"):
log.info("==> __aarch64__ not available, disabling 64bit extensions")
IS_AARCH64 = False
Expand Down
4 changes: 0 additions & 4 deletions src/yencode/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@
#define PLATFORM_ARM 1
#endif

#if defined(UNSUPPORTED_PLATFORM_ARM)
#undef PLATFORM_ARM
#endif

#include <stdlib.h>
#if defined(_MSC_VER) || defined(__MINGW32__) || defined(__MINGW64__)
// MSVC doesn't support C11 aligned_alloc: https://stackoverflow.com/a/62963007
Expand Down

0 comments on commit 7565afd

Please sign in to comment.