Skip to content

Commit

Permalink
use MSYS for travis windows
Browse files Browse the repository at this point in the history
  • Loading branch information
fangq committed Jul 24, 2020
1 parent 0e8c445 commit b532d76
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion commons/Makefile_common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,15 @@ DLLFLAG=-fPIC
PLATFORM = $(shell uname -s)
ifeq ($(findstring MINGW64,$(PLATFORM)), MINGW64)
MW_MINGW64_LOC=/c/msys64/usr/
MKMEX :=cmd //c mex.bat
MKMEX :=cmd //c mex.bat
INCLUDEDIRS+=-I"./mingw64/include"
LIBOPENCL ="c:\Windows\System32\OpenCL.dll"
MKMEXOPT =-f mexopts_msys2_gcc.xml COMPFLAGS='$$COMPFLAGS $(CCFLAGS) $(USERCCFLAGS)' LDFLAGS='$$LDFLAGS -static $(OPENMPLIB) $(LIBOPENCL) $(MEXLINKOPT)' $(FASTMATH) -outdir ../mmclab
EXTRALIB +=-static
CCFLAGS +=-D__USE_MINGW_ANSI_STDIO=1
DLLFLAG =
else ifeq ($(findstring MSYS,$(PLATFORM)), MSYS)
MKMEX :=cmd //c mex.bat
INCLUDEDIRS+=-I"./mingw64/include"
LIBOPENCL ="c:\Windows\System32\OpenCL.dll"
MKMEXOPT =-f mexopts_msys2_gcc.xml COMPFLAGS='$$COMPFLAGS $(CCFLAGS) $(USERCCFLAGS)' LDFLAGS='$$LDFLAGS -static $(OPENMPLIB) $(LIBOPENCL) $(MEXLINKOPT)' $(FASTMATH) -outdir ../mmclab
Expand Down

0 comments on commit b532d76

Please sign in to comment.