SHA256
1
0
forked from pool/llvm

- Switch to 2-stage bootstrap because we don't do build-compare

anyway.

OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/llvm?expand=0&rev=141
This commit is contained in:
Ismail Dönmez 2012-04-26 10:53:01 +00:00 committed by Git OBS Bridge
parent 5394e24b07
commit 39d72f1bae
2 changed files with 11 additions and 18 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Apr 26 10:55:02 UTC 2012 - idonmez@suse.com
- Switch to 2-stage bootstrap because we don't do build-compare
anyway.
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Apr 25 09:40:32 UTC 2012 - idonmez@suse.com Wed Apr 25 09:40:32 UTC 2012 - idonmez@suse.com

View File

@ -158,7 +158,7 @@ echo > utils/unittest/LLVMBuild.txt
%build %build
TOPLEVEL=$PWD TOPLEVEL=$PWD
mkdir stage1 stage2 stage3 mkdir stage1 stage2
pushd stage1 pushd stage1
../configure \ ../configure \
@ -172,25 +172,12 @@ make %{?_smp_mflags}
popd popd
pushd stage2 pushd stage2
export CC=$TOPLEVEL/stage1/Release/bin/clang
export CXX=$TOPLEVEL/stage1/Release/bin/clang++
../configure \
--enable-optimized \
--disable-assertions \
--enable-targets=host
make %{?_smp_mflags}
popd
pushd stage3
# autotools ignore --libdir # autotools ignore --libdir
mkdir Release mkdir Release
ln -s lib Release/lib64 ln -s lib Release/lib64
export CC=$TOPLEVEL/stage2/Release/bin/clang export CC=$TOPLEVEL/stage1/Release/bin/clang
export CXX=$TOPLEVEL/stage2/Release/bin/clang++ export CXX=$TOPLEVEL/stage1/Release/bin/clang++
../configure \ ../configure \
--prefix=%{_prefix} \ --prefix=%{_prefix} \
@ -207,13 +194,13 @@ export CXX=$TOPLEVEL/stage2/Release/bin/clang++
make %{?_smp_mflags} REQUIRES_RTTI=1 make %{?_smp_mflags} REQUIRES_RTTI=1
%check %check
cd stage3 cd stage2
make check make check
cd tools/clang cd tools/clang
make test make test
%install %install
cd stage3 cd stage2
%makeinstall %makeinstall
cd .. cd ..