This repository has been archived by the owner on Sep 29, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 374
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
llvm: Lots more work on installation
- Loading branch information
1 parent
3b78008
commit 8ad60f9
Showing
12 changed files
with
143 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
#!/bin/bash | ||
|
||
DEST=${PWD}/install-cctools-ld64 | ||
. activate "${PREFIX}" | ||
cd "${SRC_DIR}" | ||
|
||
DEST="${PWD}"/install-cctools-ld64 | ||
pushd cctools_build_final | ||
make install DESTDIR=${DEST} | ||
make install DESTDIR="${DEST}" | ||
popd | ||
pushd ${DEST}/${PWD}/prefix | ||
cp -Rf * ${PREFIX} | ||
pushd "${DEST}"/"${PWD}"/prefix | ||
cp -Rf * "${PREFIX}" | ||
popd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
#!/bin/bash | ||
|
||
DEST=${PWD}/install-clang | ||
. activate "${PREFIX}" | ||
cd "${SRC_DIR}" | ||
|
||
DEST="${PWD}"/install-clang | ||
pushd llvm_build_final/tools/clang | ||
make install DESTDIR=${DEST} | ||
make install DESTDIR="${DEST}" | ||
popd | ||
pushd ${DEST}/${PWD}/prefix | ||
cp -Rf * ${PREFIX} | ||
install -Dm644 LICENSE.TXT "${PREFIX}"/share/licenses/clang/LICENSE | ||
pushd "${DEST}"/"${PWD}"/prefix | ||
cp -Rf * "${PREFIX}" | ||
rm "${PREFIX}"/bin/clang++ | ||
find . -name "LICENSE*" | ||
cp LICENSE.TXT "${PREFIX}"/share/licenses/clang/LICENSE | ||
popd | ||
rm -f ${PREFIX}/bin/clang++ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
#!/bin/bash | ||
|
||
. activate "${PREFIX}" | ||
cd "${SRC_DIR}" | ||
|
||
pushd ${PREFIX}/bin | ||
ln -s clang clang++ | ||
popd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
#!/bin/bash | ||
|
||
DEST=${PWD}/install-compiler-rt | ||
. activate "${PREFIX}" | ||
cd "${SRC_DIR}" | ||
|
||
DEST="${PWD}"/install-compiler-rt | ||
pushd llvm_build_final/projects/compiler-rt | ||
make install DESTDIR=${DEST} | ||
make install DESTDIR="${DEST}" | ||
popd | ||
pushd ${DEST}/${PWD}/prefix | ||
cp -Rf * ${PREFIX} | ||
pushd "${DEST}"/"${PWD}"/prefix | ||
cp -Rf * "${PREFIX}" | ||
popd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
#!/bin/bash | ||
|
||
DEST=${PWD}/install-libcxx | ||
. activate "${PREFIX}" | ||
cd "${SRC_DIR}" | ||
|
||
DEST="${PWD}"/install-libcxx | ||
pushd llvm_build_final/projects/libcxx | ||
make install DESTDIR=${DEST} | ||
make install DESTDIR="${DEST}" | ||
popd | ||
pushd ${DEST}/${PWD}/prefix | ||
cp -Rf * ${PREFIX} | ||
pushd "${DEST}"/"${PWD}"/prefix | ||
cp -Rf * "${PREFIX}" | ||
popd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
#!/bin/bash | ||
|
||
DEST=${PWD}/install-libcxxabi | ||
. activate "${PREFIX}" | ||
cd "${SRC_DIR}" | ||
|
||
DEST="${PWD}"/install-libcxxabi | ||
pushd llvm_build_final/projects/libcxxabi | ||
make install DESTDIR=${DEST} | ||
make install DESTDIR="${DEST}" | ||
popd | ||
pushd ${DEST}/${PWD}/prefix | ||
cp -Rf * ${PREFIX} | ||
pushd "${DEST}"/"${PWD}"/prefix | ||
cp -Rf * "${PREFIX}" | ||
popd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
#!/bin/bash | ||
|
||
DEST=${PWD}/install-libunwind | ||
. activate "${PREFIX}" | ||
cd "${SRC_DIR}" | ||
|
||
DEST="${PWD}"/install-libunwind | ||
pushd llvm_build_final/projects/libunwind | ||
make install DESTDIR=${DEST} | ||
make install DESTDIR="${DEST}" | ||
popd | ||
pushd ${DEST}/${PWD}/prefix | ||
cp -Rf * ${PREFIX} | ||
pushd "${DEST}"/"${PWD}"/prefix | ||
cp -Rf * "${PREFIX}" | ||
popd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,15 @@ | ||
#!/bin/bash | ||
|
||
DEST=${PWD}/install-llvm-lto-tapi | ||
pushd llvm_build_finald/tools/lto | ||
make install DESTDIR=${DEST} | ||
. activate "${PREFIX}" | ||
cd "${SRC_DIR}" | ||
|
||
DEST="${PWD}"/install-llvm-lto-tapi | ||
pushd llvm_build_final/tools/lto | ||
make install DESTDIR="${DEST}" | ||
popd | ||
pushd llvm_build_final/projects/tapi | ||
make install DESTDIR=${DEST} | ||
make install DESTDIR="${DEST}" | ||
popd | ||
pushd ${DEST}/${PWD}/prefix | ||
cp -Rf * ${PREFIX} | ||
pushd "${DEST}"/"${PWD}"/prefix | ||
cp -Rf * "${PREFIX}" | ||
popd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,12 @@ | ||
#!/bin/bash | ||
|
||
. activate "${PREFIX}" | ||
cd "${SRC_DIR}" | ||
|
||
DEST=${PWD}/install-llvm | ||
DEST="${PWD}"/install-llvm | ||
pushd llvm_build_final | ||
make install DESTDIR=${DEST} | ||
make install DESTDIR="${DEST}" | ||
popd | ||
pushd ${DEST}/${PWD}/prefix | ||
cp -Rf * ${PREFIX} | ||
install -Dm644 LICENSE.TXT "${PREFIX}"/share/licenses/llvm/LICENSE | ||
# Install CMake stuff | ||
install -d "${PREFIX}"/share/llvm/cmake/{modules,platforms} | ||
install -Dm644 "${SRC_DIR}"/cmake/modules/*.cmake "${PREFIX}"/share/llvm/cmake/modules/ | ||
install -Dm644 "${SRC_DIR}"/cmake/platforms/*.cmake "${PREFIX}"/share/llvm/cmake/platforms/ | ||
pushd "${DEST}"/"${PWD}"/prefix | ||
cp -Rf * "${PREFIX}" | ||
popd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
|
||
. activate "${PREFIX}" | ||
cd "${SRC_DIR}" | ||
|
||
DEST="${PWD}"/install-polly | ||
pushd llvm_build_final/tools/polly | ||
make install DESTDIR="${DEST}" | ||
popd | ||
pushd "${DEST}"/"${PWD}"/prefix | ||
cp -Rf * "${PREFIX}" | ||
popd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters