Skip to content

Commit

Permalink
インストール前に既存のバイナリを削除する
Browse files Browse the repository at this point in the history
  • Loading branch information
melpon committed Jan 2, 2020
1 parent 8b37029 commit 3aa9f2f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 83 deletions.
1 change: 1 addition & 0 deletions build/gcc-head/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,5 @@ cd build
LDFLAGS="-Wl,-rpath,$PREFIX/lib,-rpath,$PREFIX/lib64,-rpath,$PREFIX/lib32"

make -j2
rm -rf $PREFIX
make install
88 changes: 5 additions & 83 deletions build/gdc-head/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,106 +4,28 @@

PREFIX=/opt/wandbox/gdc-head

# get sources

mkdir ~/gdc-head
cd ~/gdc-head


# gdc needs bootstrap: https://stackoverflow.com/questions/51815286/gdc-installation-error

# ---- step1 - build gdc on stable branch ----

# get GDC sources

git clone --depth 1 -b stable https://github.com/D-Programming-GDC/GDC.git gdc-stable

# get GCC sources

git clone --depth 10000 https://github.com/gcc-mirror/gcc.git gcc-stable
cd gcc-stable

VERSION=`cut -d- -f3 < ../gdc-stable/gcc.version`
BEFORE=`date "+%Y-%m-%d" -d "$VERSION next day"`
COMMIT=`TZ=UTC git log -n1 --pretty=tformat:%H --before=$BEFORE`
git reset --hard $COMMIT
cd ..

# setup

cd gdc-stable
./setup-gcc.sh ../gcc-stable
cd ..

# build

mkdir build
cd build
../gcc-stable/configure \
--prefix=/usr/local \
--enable-languages=d \
--disable-bootstrap \
--disable-multilib \
--without-ppl \
--without-cloog-ppl \
--enable-checking=release \
--disable-nls \
--enable-lto \
--with-bugurl="http://bugzilla.gdcproject.org" \
--disable-libgomp \
--disable-libmudflap \
--disable-libquadmath \
LDFLAGS="-Wl,-rpath,$PREFIX/lib,-rpath,$PREFIX/lib64,-rpath,$PREFIX/lib32"

make -j2
make install

# clean

cd ..
rm -rf build

# ---- step2 - build gdc on master branch using stable gdc for bootstrap ----

# get GDC sources

git clone --depth 1 -b master https://github.com/D-Programming-GDC/GDC.git gdc

# get GCC sources

git clone --depth 10000 https://github.com/gcc-mirror/gcc.git gcc
cd gcc

VERSION=`cut -d- -f3 < ../gdc/gcc.version`
BEFORE=`date "+%Y-%m-%d" -d "$VERSION next day"`
COMMIT=`TZ=UTC git log -n1 --pretty=tformat:%H --before=$BEFORE`
git reset --hard $COMMIT
cd ..

# setup

cd gdc
git checkout master
./setup-gcc.sh ../gcc
cd ..
git clone --depth 1 https://github.com/gcc-mirror/gcc.git source

# build

mkdir build
cd build
../gcc/configure \
../source/configure \
--prefix=$PREFIX \
--enable-languages=d \
--disable-bootstrap \
--disable-multilib \
--without-ppl \
--without-cloog-ppl \
--enable-checking=release \
--disable-nls \
--enable-lto \
--with-bugurl="http://bugzilla.gdcproject.org" \
--disable-libgomp \
--disable-libmudflap \
--disable-libquadmath \
LDFLAGS="-Wl,-rpath,$PREFIX/lib,-rpath,$PREFIX/lib64,-rpath,$PREFIX/lib32"

make -j2
rm -rf $PREFIX
make install
1 change: 1 addition & 0 deletions build/pony-head/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ git submodule update --recursive --init

# build
make -j2
rm -rf $PREFIX
make prefix=$PREFIX install
2 changes: 2 additions & 0 deletions build/swift-head/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ cd swift
# for 3.x
# utils/build-script --assertions --no-swift-stdlib-assertions --llbuild --swiftpm --xctest --build-subdir=buildbot_linux --lldb --release --test --validation-test --long-test --foundation --libdispatch --lit-args=-v -- --swift-enable-ast-verifier=0 --install-swift --install-lldb --install-llbuild --install-swiftpm --install-xctest --install-prefix=/usr '--swift-install-components=autolink-driver;compiler;clang-builtin-headers;stdlib;swift-remote-mirror;sdk-overlay;license' --build-swift-static-stdlib --build-swift-static-sdk-overlay --build-swift-stdlib-unittest-extra --test-installable-package --install-destdir=/opt/wandbox/swift-3.0.2 --installable-package=/root/test.tar.gz --install-foundation --install-libdispatch --reconfigure

rm -rf $PREFIX

utils/build-script \
--assertions \
--no-swift-stdlib-assertions \
Expand Down

0 comments on commit 3aa9f2f

Please # to comment.