Skip to content

Commit ab5a124

Browse files
metab0tstaticfloat
authored andcommitted
Identify cross compiler by triplet
1 parent 0d8ab0e commit ab5a124

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Make.inc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ endif
1818

1919
# Figure out OS and architecture (used to set `shlib_ext`)
2020
OS := $(shell uname)
21-
ifneq (,$(findstring MINGW,$(OS))$(findstring MSYS,$(OS))$(findstring CYGWIN,$(OS))$(findstring mingw,$(CC)))
21+
TRIPLET := $(shell $(CC) -dumpmachine)
22+
ifneq (,$(findstring MINGW,$(OS))$(findstring MSYS,$(OS))$(findstring CYGWIN,$(OS))$(findstring mingw,$(TRIPLET)))
2223
OS := WINNT
2324
endif
2425

0 commit comments

Comments
 (0)