Skip to content

Commit

Permalink
change arm compiler to clang++
Browse files Browse the repository at this point in the history
  • Loading branch information
fujita-y committed May 23, 2016
1 parent a3617b8 commit f25bb08
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
16 changes: 4 additions & 12 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ PREFIX = /usr/local

CPPFLAGS = -DNDEBUG -DSYSTEM_SHARE_PATH='"$(DESTDIR)$(PREFIX)/share/$(PROG)"' -DSYSTEM_EXTENSION_PATH='"$(DESTDIR)$(PREFIX)/lib/$(PROG)"'

CXXFLAGS = -pipe -fstrict-aliasing
CXXFLAGS = -pipe -O3 -fstrict-aliasing

SRCS = file.cpp main.cpp vm0.cpp object_heap_compact.cpp subr_flonum.cpp vm1.cpp object_set.cpp \
subr_hash.cpp vm2.cpp object_slab.cpp subr_list.cpp interpreter.cpp serialize.cpp nanoasm.cpp \
Expand All @@ -23,9 +23,8 @@ VPATH = src
UNAME = $(shell uname -a)

ifneq (,$(findstring Linux, $(UNAME)))
CXXFLAGS_VM1 = -fno-reorder-blocks -fno-crossjumping -fno-align-labels -fno-align-loops -fno-align-jumps
ifneq (,$(findstring ppc, $(UNAME)))
CXXFLAGS += -O3
CXXFLAGS_VM1 = -fno-reorder-blocks -fno-crossjumping -fno-align-labels -fno-align-loops -fno-align-jumps
ifneq (,$(findstring ps3, $(UNAME)))
ifneq (,$(shell which ppu-g++ 2>/dev/null))
CXX = ppu-g++
Expand Down Expand Up @@ -61,7 +60,7 @@ ifneq (,$(findstring Linux, $(UNAME)))
LDLIBS = -lpthread -ldl
else
ifneq (,$(findstring armv, $(UNAME)))
CXXFLAGS += -O2
CXX = clang++
ifndef DATAMODEL
ifeq (,$(shell echo | $(CXX) -E -dM - | grep '__LP64__'))
DATAMODEL = ILP32
Expand All @@ -77,12 +76,9 @@ ifneq (,$(findstring Linux, $(UNAME)))
CXXFLAGS += -march=armv8-a
endif
CXXFLAGS += -pthread -fomit-frame-pointer
ifneq (,$(shell $(CXX) -dumpspecs | grep 'stack-protector'))
CXXFLAGS += -fno-stack-protector
endif
LDLIBS = -pthread -Wl,--no-as-needed -ldl
else
CXXFLAGS += -O3
CXXFLAGS_VM1 = -fno-reorder-blocks -fno-crossjumping -fno-align-labels -fno-align-loops -fno-align-jumps
ifndef DATAMODEL
ifeq (,$(shell echo | $(CXX) -E -dM - | grep '__LP64__'))
DATAMODEL = ILP32
Expand Down Expand Up @@ -125,7 +121,6 @@ ifneq (,$(findstring Linux, $(UNAME)))
endif

ifneq (,$(findstring FreeBSD, $(UNAME)))
CXXFLAGS += -O3
CXXFLAGS_VM1 = -fno-reorder-blocks -fno-crossjumping -fno-align-labels -fno-align-loops -fno-align-jumps
ifndef DATAMODEL
ifeq (,$(shell echo | $(CXX) -E -dM - | grep '__LP64__'))
Expand Down Expand Up @@ -173,7 +168,6 @@ ifneq (,$(findstring FreeBSD, $(UNAME)))
endif

ifneq (,$(findstring OpenBSD, $(UNAME)))
CXXFLAGS += -O3
CXXFLAGS_VM1 = -fno-reorder-blocks -fno-crossjumping -fno-align-labels -fno-align-loops -fno-align-jumps
ifndef DATAMODEL
ifeq (,$(shell echo | $(CXX) -E -dM - | grep '__LP64__'))
Expand Down Expand Up @@ -216,7 +210,6 @@ ifneq (,$(findstring OpenBSD, $(UNAME)))
endif

ifneq (,$(findstring SunOS, $(UNAME)))
CXXFLAGS += -O3
CXXFLAGS_VM1 = -fno-reorder-blocks -fno-crossjumping -fno-align-labels -fno-align-loops -fno-align-jumps
ifndef DATAMODEL
ifeq (,$(shell isainfo -b | grep '64'))
Expand Down Expand Up @@ -259,7 +252,6 @@ endif

ifneq (,$(findstring Darwin, $(UNAME)))
CXX = g++
CXXFLAGS += -O3
CXXFLAGS += -arch i386 -msse2 -mfpmath=sse -fomit-frame-pointer -momit-leaf-frame-pointer
ifneq (,$(shell sw_vers -productVersion | grep '10.4.'))
CPPFLAGS += -DNO_POSIX_SPAWN
Expand Down
2 changes: 1 addition & 1 deletion src/revision.h
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#define PROGRAM_REVISION 507
#define PROGRAM_REVISION 508

0 comments on commit f25bb08

Please sign in to comment.