Skip to content

Commit

Permalink
update from appveyor2 branch
Browse files Browse the repository at this point in the history
  • Loading branch information
tkelman committed Mar 23, 2014
1 parent 0819780 commit 83fb556
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions contrib/windows/msys_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,12 @@ else
deps/jldownload ar-lib "http://git.savannah.gnu.org/cgit/automake.git/plain/lib/ar-lib?id=v1.14.1 -sS"
chmod +x compile
chmod +x ar-lib
echo "override CC = $PWD/compile cl -TP" >> Make.user
echo "override CC = $PWD/compile cl -nologo" >> Make.user
echo 'override CXX = $(CC)' >> Make.user
echo 'override FC = $(CC)' >> Make.user
export AR="$PWD/ar-lib lib"
echo "override AR = $AR" >> Make.user
export LD=link
fi

# If no Fortran compiler installed, override with name of C compiler
Expand Down Expand Up @@ -120,6 +121,8 @@ for f in $download \
done
if [ -z "`which make 2>/dev/null`" ]; then
mv bin/make.exe /usr/bin
# msysgit has an ancient version of touch that fails with touch -c nonexistent
cp bin/touch.exe /usr/bin
fi
for i in cat chmod echo false printf sort touch true; do
mv bin/$i.exe usr/Git/bin
Expand Down Expand Up @@ -164,7 +167,13 @@ echo 'override LIBUV_INC = $(JULIAHOME)/usr/include' >> Make.user
echo 'override STAGE1_DEPS = random' >> Make.user
echo 'override STAGE2_DEPS = utf8proc' >> Make.user
echo 'override STAGE3_DEPS = ' >> Make.user
make -C deps get-openlibm utf8proc-v1.1.6/Makefile get-random
make -C deps get-openlibm get-utf8proc get-random

# Disable git and enable verbose make in AppVeyor
if [ -n "$APPVEYOR" ]; then
echo 'override NO_GIT = 1' >> Make.user
echo 'VERBOSE = 1' >> Make.user
fi

if [ -n "$USEMSVC" ]; then
# Openlibm doesn't build well with MSVC right now
Expand All @@ -173,25 +182,16 @@ if [ -n "$USEMSVC" ]; then
echo 'override UNTRUSTED_SYSTEM_LIBM = 0' >> Make.user

# Fix MSVC compilation issues
sed -i 's/-Wall -Wno-strict-aliasing//' src/Makefile
sed -i 's/-Wall -Wno-strict-aliasing//' src/support/Makefile
sed -i 's!$(LLVM_CONFIG) --cxxflags!$(LLVM_CONFIG) --cxxflags | sed "s/-Woverloaded-virtual -Wcast-qual//"!g' src/Makefile
sed -i "s/_setjmp.win$bits.o _longjmp.win$bits.o//g" src/support/Makefile # this probably breaks exception handling
sed -i 's/char bool/char _bool/' deps/utf8proc-v1.1.6/utf8proc.h
sed -i 's/false, true/_false, _true/' deps/utf8proc-v1.1.6/utf8proc.h
sed -i 's/buffer = malloc/buffer = (int32_t *) malloc/' deps/utf8proc-v1.1.6/utf8proc.c
sed -i 's/newptr = realloc/newptr = (int32_t *) realloc/' deps/utf8proc-v1.1.6/utf8proc.c
sed -i 's!$(LLVM_CONFIG) --cxxflags)!$(LLVM_CONFIG) --cxxflags | sed "s/-Woverloaded-virtual -Wcast-qual//")!g' src/Makefile
#sed -i 's/-Wno-implicit-function-declaration//' deps/openlibm/Make.inc

# Compile libuv and utf8proc without -TP first, then add -TP
make -C deps install-uv install-utf8proc
echo 'override CC += -TP' >> Make.user
else
echo 'override STAGE1_DEPS += openlibm' >> Make.user
fi

# Disable git and enable verbose make in AppVeyor
if [ -n "$APPVEYOR" ]; then
echo 'override NO_GIT = 1' >> Make.user
echo 'VERBOSE = 1' >> Make.user
fi

make -j 4
# remove precompiled system image
rm usr/lib/julia/sys.dll

0 comments on commit 83fb556

Please sign in to comment.