- 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:
parent
5394e24b07
commit
39d72f1bae
@ -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
|
||||
|
||||
|
23
llvm.spec
23
llvm.spec
@ -158,7 +158,7 @@ echo > utils/unittest/LLVMBuild.txt
|
||||
|
||||
%build
|
||||
TOPLEVEL=$PWD
|
||||
mkdir stage1 stage2 stage3
|
||||
mkdir stage1 stage2
|
||||
pushd stage1
|
||||
|
||||
../configure \
|
||||
@ -172,25 +172,12 @@ make %{?_smp_mflags}
|
||||
popd
|
||||
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
|
||||
mkdir Release
|
||||
ln -s lib Release/lib64
|
||||
|
||||
export CC=$TOPLEVEL/stage2/Release/bin/clang
|
||||
export CXX=$TOPLEVEL/stage2/Release/bin/clang++
|
||||
export CC=$TOPLEVEL/stage1/Release/bin/clang
|
||||
export CXX=$TOPLEVEL/stage1/Release/bin/clang++
|
||||
|
||||
../configure \
|
||||
--prefix=%{_prefix} \
|
||||
@ -207,13 +194,13 @@ export CXX=$TOPLEVEL/stage2/Release/bin/clang++
|
||||
make %{?_smp_mflags} REQUIRES_RTTI=1
|
||||
|
||||
%check
|
||||
cd stage3
|
||||
cd stage2
|
||||
make check
|
||||
cd tools/clang
|
||||
make test
|
||||
|
||||
%install
|
||||
cd stage3
|
||||
cd stage2
|
||||
%makeinstall
|
||||
cd ..
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user