Skip to content

Commit

Permalink
Fix aarch64 windows detection
Browse files Browse the repository at this point in the history
  • Loading branch information
andrjohns committed Jun 3, 2024
1 parent 4ab560f commit a88c143
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Makevars
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ else
DLL := .so
endif

CC_VERSION := $(shell $(CC) -dumpfullversion -dumpversion 2>&1)
CC_VERSION := $(shell $(CXX) -dumpfullversion -dumpversion 2>&1)
CC_MAJOR := $(word 1,$(subst ., ,$(CC_VERSION)))

CLANG_CHECK := $(shell echo | $(CC) -dM -E - | grep -i __clang__)
CLANG_CHECK := $(shell echo | $(CXX) -dM -E - | grep -i __clang__)

# Older versions of gcc and clang don't provide the stdatomic.h header
ifneq (,$(CLANG_CHECK))
Expand All @@ -21,7 +21,7 @@ ifneq (,$(CLANG_CHECK))
endif
# Clang on armel needs libatomic
ifeq ($(shell uname -m), armv7l)
CC_TARGET := $(shell $(CC) -v 2>&1 | grep Target | cut -d ' ' -f 2)
CC_TARGET := $(shell $(CXX) -v 2>&1 | grep Target | cut -d ' ' -f 2)
ifeq ($(findstring gnueabihf,$(CC_TARGET)),)
PKG_LIBS += -latomic
endif
Expand Down

0 comments on commit a88c143

Please sign in to comment.