Skip to content

Commit

Permalink
Fix bug in GCC's target platform detection under some non-English loc…
Browse files Browse the repository at this point in the history
…ales
  • Loading branch information
gnaggnoyil committed May 12, 2020
1 parent 5b08c8f commit db75edf
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 db75edf

Please sign in to comment.