Skip to content

Commit

Permalink
install g++4.8
Browse files Browse the repository at this point in the history
  • Loading branch information
mks-m committed Feb 19, 2016
1 parent 81a0484 commit bab4537
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 23 deletions.
22 changes: 13 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
language: cpp
compiler:
- g++
- clang

sudo: false
env:
- JIT_OPTS='--opt=jit' TARGET_OPTS='target.py'
- JIT_OPTS='' TARGET_OPTS='target.py'

matrix:
fast_finish: true
fast_finish: true

install:
- if [ "$CXX" = "g++" ]; then export CXX="g++-4.8" CC="gcc-4.8"; fi

script:
- make PYTHON=python build
Expand All @@ -19,12 +19,16 @@ script:

addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- libffi-dev
- libedit-dev
- libboost-all-dev
- zlib1g-dev
- zlib-bin
- libffi-dev
- libedit-dev
- libboost-all-dev
- zlib1g-dev
- zlib-bin
- gcc-4.8
- g++-4.8

notifications:
irc: "chat.freenode.net#pixie-lang"
23 changes: 9 additions & 14 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,25 +18,25 @@ help:
@echo "make build_no_jit - build without jit"
@echo "make fetch_externals - download and unpack external deps"

build_with_jit: fetch_externals
build_with_jit: fetch_externals re2_cre2
@if [ ! -d /usr/local/include/boost -a ! -d /usr/include/boost ] ; then echo "Boost C++ Library not found" && false; fi && \
$(PYTHON) $(EXTERNALS)/pypy/rpython/bin/rpython $(COMMON_BUILD_OPTS) --opt=jit target.py && \
make compile_basics

build_no_jit: fetch_externals
build_no_jit: fetch_externals re2_cre2
@if [ ! -d /usr/local/include/boost -a ! -d /usr/include/boost ] ; then echo "Boost C++ Library not found" && false; fi && \
$(PYTHON) $(EXTERNALS)/pypy/rpython/bin/rpython $(COMMON_BUILD_OPTS) target.py && \
make compile_basics

build_no_jit_shared: fetch_externals
build_no_jit_shared: fetch_externals re2_cre2
@if [ ! -d /usr/local/include/boost -a ! -d /usr/include/boost ] ; then echo "Boost C++ Library not found" && false; fi && \
$(PYTHON) $(EXTERNALS)/pypy/rpython/bin/rpython $(COMMON_BUILD_OPTS) --shared target.py && \
make compile_basics


compile_basics:
@echo -e "\n\n\n\nWARNING: Compiling core libs. If you want to modify one of these files delete the .pxic files first\n\n\n\n"
./pixie-vm -c pixie/uv.pxi -c pixie/io.pxi -c pixie/stacklets.pxi -c pixie/stdlib.pxi -c pixie/repl.pxi
./pixie-vm -c pixie/uv.pxi -c pixie/io.pxi -c pixie/stacklets.pxi -c pixie/stdlib.pxi -c pixie/repl.pxi -c pixie/re.pxi

build: fetch_externals re2_cre2
$(PYTHON) $(EXTERNALS)/pypy/rpython/bin/rpython $(COMMON_BUILD_OPTS) $(JIT_OPTS) $(TARGET_OPTS)
Expand Down Expand Up @@ -65,30 +65,25 @@ $(EXTERNALS)/re2: $(EXTERNALS)
shasum -a 256 re2.tar.gz | grep -q f246c43897ac341568a7460622138ec0dd8de9b6f5459686376fa23e9d8c1bb8 && \
mkdir -p re2 && \
cd re2 && \
tar -zxf ../re2.tar.gz --strip-components=1

$(EXTERNALS)/re2/obj/libre2.a: $(EXTERNALS)/re2
cd $(EXTERNALS)/re2 && make
tar -zxf ../re2.tar.gz --strip-components=1 && \
make

$(EXTERNALS)/cre2: $(EXTERNALS)
cd $(EXTERNALS) && \
curl -sL https://bitbucket.org/marcomaggi/cre2/downloads/cre2-0.2.0.tar.xz > cre2.tar.xz && \
shasum -a 256 cre2.tar.xz | grep -q d31118dbc9d2b1cf95c1b763ca92ae2ec4e262b1f8d8e995c1ffdc8eb40a82fc && \
mkdir -p cre2 && \
cd cre2 && \
tar -Jxf ../cre2.tar.xz --strip-components=1

$(EXTERNALS)/cre2/build/.libs/libcre2.a: $(EXTERNALS)/cre2
cd $(EXTERNALS)/cre2 && \
tar -Jxf ../cre2.tar.xz --strip-components=1 && \
mkdir -p build && \
cd build && \
../configure LDFLAGS="-L`pwd`/../../re2/obj" CPPFLAGS="-I`pwd`/../../re2" && \
chmod +x ../meta/autotools/install-sh && \
make

re2: $(EXTERNALS)/re2/obj/libre2.a
re2: $(EXTERNALS)/re2

cre2: $(EXTERNALS)/cre2/build/.libs/libcre2.a
cre2: $(EXTERNALS)/cre2

re2_cre2: re2 cre2

Expand Down

0 comments on commit bab4537

Please sign in to comment.