- Switch to 3-stage bootstrap
OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/llvm?expand=0&rev=100
This commit is contained in:
parent
1e5a0441c4
commit
4924b082fd
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Dec 5 13:19:22 UTC 2011 - idoenmez@suse.de
|
||||||
|
|
||||||
|
- Switch to 3-stage bootstrap
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Dec 2 12:22:07 UTC 2011 - idoenmez@suse.de
|
Fri Dec 2 12:22:07 UTC 2011 - idoenmez@suse.de
|
||||||
|
|
||||||
|
27
llvm.spec
27
llvm.spec
@ -139,8 +139,8 @@ sed -i s,/lib/LLVMgold.so,/lib64/LLVMgold.so, tools/clang/lib/Driver/Tools.cpp
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
TOPLEVEL=$PWD
|
TOPLEVEL=$PWD
|
||||||
mkdir stage1 stage2
|
mkdir stage1 stage2 stage3
|
||||||
cd stage1
|
pushd stage1
|
||||||
|
|
||||||
# Idiot cmake doesn't let me select my own optimization level here
|
# Idiot cmake doesn't let me select my own optimization level here
|
||||||
# hence we use configure, this needed to workaround a gcc 4.5 bug
|
# hence we use configure, this needed to workaround a gcc 4.5 bug
|
||||||
@ -152,13 +152,26 @@ cd stage1
|
|||||||
|
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
cd ../stage2
|
popd
|
||||||
# Needed to make clang resource dir working inside build tree
|
pushd stage2
|
||||||
ln -s lib lib64
|
|
||||||
|
|
||||||
export CC=$TOPLEVEL/stage1/Release/bin/clang
|
export CC=$TOPLEVEL/stage1/Release/bin/clang
|
||||||
export CXX=$TOPLEVEL/stage1/Release/bin/clang++
|
export CXX=$TOPLEVEL/stage1/Release/bin/clang++
|
||||||
|
|
||||||
|
cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} \
|
||||||
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
|
-DLLVM_TARGETS_TO_BUILD=%{_supported_archs} \
|
||||||
|
..
|
||||||
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
|
popd
|
||||||
|
pushd stage3
|
||||||
|
# Needed to make clang resource dir working inside build tree
|
||||||
|
ln -s lib lib64
|
||||||
|
|
||||||
|
export CC=$TOPLEVEL/stage2/Release/bin/clang
|
||||||
|
export CXX=$TOPLEVEL/stage2/Release/bin/clang++
|
||||||
|
|
||||||
cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} \
|
cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} \
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
-DLLVM_ENABLE_ASSERTIONS=FALSE \
|
-DLLVM_ENABLE_ASSERTIONS=FALSE \
|
||||||
@ -177,12 +190,12 @@ cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} \
|
|||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
cd stage2
|
cd stage3
|
||||||
make check
|
make check
|
||||||
make clang-test
|
make clang-test
|
||||||
|
|
||||||
%install
|
%install
|
||||||
cd stage2
|
cd stage3
|
||||||
%makeinstall
|
%makeinstall
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user