Skip to content

Commit

Permalink
Misc build fixes for win32 clang (JuliaLang#18164)
Browse files Browse the repository at this point in the history
  • Loading branch information
Keno authored and tkelman committed Aug 21, 2016
1 parent eca2083 commit 78371b3
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Make.inc
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,9 @@ export CCACHE_CPP2 := yes
endif
else #USECCACHE
CC_BASE := $(shell echo $(CC) | cut -d' ' -f1)
CC_ARG := $(shell echo $(CC) | cut -d' ' -f2-)
CXX_BASE := $(shell echo $(CXX) | cut -d' ' -f1)
CXX_ARG := $(shell echo $(CXX) | cut -d' ' -f2-)
endif

JFFLAGS := -O2 $(fPIC)
Expand Down Expand Up @@ -683,10 +685,12 @@ endif

ifeq ($(OS),WINNT)
ifneq ($(ARCH),x86_64)
ifneq ($(USECLANG),1)
JCFLAGS += -mincoming-stack-boundary=2
JCXXFLAGS += -mincoming-stack-boundary=2
endif
endif
endif

ifeq ($(USEGCC),1)
ifeq ($(ISX86),1)
Expand Down
2 changes: 2 additions & 0 deletions deps/blas.mk
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ OPENBLAS_BUILD_OPTS += OSNAME=$(OS) CROSS=1 HOSTCC=$(HOSTCC)
endif
ifeq ($(OS),WINNT)
ifneq ($(ARCH),x86_64)
ifneq ($(USECLANG),1)
OPENBLAS_BUILD_OPTS += CFLAGS="$(CFLAGS) -mincoming-stack-boundary=2"
endif
OPENBLAS_BUILD_OPTS += FFLAGS="$(FFLAGS) -mincoming-stack-boundary=2"
endif
endif
Expand Down
2 changes: 2 additions & 0 deletions deps/libgit2.mk
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ LIBGIT2_OPTS := $(CMAKE_COMMON) -DCMAKE_BUILD_TYPE=Release -DTHREADSAFE=ON
ifeq ($(OS),WINNT)
LIBGIT2_OPTS += -DWIN32=ON -DMINGW=ON
ifneq ($(ARCH),x86_64)
ifneq ($(USECLANG),1)
LIBGIT2_OPTS += -DCMAKE_C_FLAGS="-mincoming-stack-boundary=2"
endif
endif
ifeq ($(BUILD_OS),WINNT)
LIBGIT2_OPTS += -G"MSYS Makefiles"
else
Expand Down
2 changes: 1 addition & 1 deletion src/support/ENTRY.i387.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ EXT(CNAME):
_START_ENTRY
.globl EXT(CNAME)
.section .drectve
.ascii " -export:" XSTR(CNAME)
.ascii " -export:", XSTR(CNAME)
.section .text
.def EXT(CNAME)
.scl 2
Expand Down

0 comments on commit 78371b3

Please sign in to comment.