Skip to content

Commit

Permalink
Merge pull request Wind4#41 from gnaggnoyil/master
Browse files Browse the repository at this point in the history
Fix bug in GCC's target platform detection under some non-English locales
  • Loading branch information
Wind4 authored Jul 28, 2023
2 parents 65228e5 + db75edf commit 70e0357
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 70e0357

Please sign in to comment.