3 Commits

Author SHA1 Message Date
nelisd b7da3be61b Merge 48b07ecd2d into 70e03572b2 2023-07-28 17:57:04 +08:00
Wind4 70e03572b2 Merge pull request #41 from gnaggnoyil/master
Fix bug in GCC's target platform detection under some non-English locales
2023-07-28 17:56:01 +08:00
gnaggnoyil db75edf481 Fix bug in GCC's target platform detection under some non-English locales 2020-05-12 19:50:58 +08:00
+1 -1
View File
@@ -70,7 +70,7 @@ VERBOSE ?= NO
################################################################################
CC ?= gcc
TARGETPLATFORM := $(shell LANG=en_US.UTF-8 $(CC) -v 2>&1 | grep '^Target: ' | cut -f 2 -d ' ')
TARGETPLATFORM := $(shell LANG=en_US.UTF-8 LANGUAGE=en_US $(CC) -v 2>&1 | grep '^Target: ' | cut -f 2 -d ' ')
ifneq (,$(findstring darwin,$(TARGETPLATFORM)))
DARWIN := 1