Skip to content

Commit

Permalink
Merge pull request rust-lang#1 from japaric/arm
Browse files Browse the repository at this point in the history
Don't pass the -m64 flag to CC when building on ARM
  • Loading branch information
alexcrichton committed Oct 2, 2014
2 parents 2730aea + 56871cd commit 210310d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ endif

ifneq ($(findstring i686,$(TARGET)),)
CC := $(CC) -m32
else
else ifneq ($(findstring x86_64,$(TARGET)),)
CC := $(CC) -m64 -fPIC
else
CC := $(CC) -fPIC
endif

all:
Expand Down

0 comments on commit 210310d

Please sign in to comment.