Skip to content

Commit

Permalink
llvm: Fix overlapping files
Browse files Browse the repository at this point in the history
  • Loading branch information
mingwandroid committed Aug 13, 2017
1 parent 2f78e66 commit e913d34
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
7 changes: 2 additions & 5 deletions cross-compilers/llvm/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -315,10 +315,9 @@ else
SED="sed -E"
fi

${SED} -i.orig '/\/clang|lld|lldb\/cmake_install.cmake/d' llvm_build_final/tools/cmake_install.cmake
${SED} -i.orig '/\/compiler-rt|libcxxabi|libcxx|libunwind\/cmake_install.cmake/d' llvm_build_final/projects/cmake_install.cmake
${SED} -i.orig '/\/clang|lld|lldb|polly\/cmake_install.cmake/d' llvm_build_final/tools/cmake_install.cmake
${SED} -i.orig '/\/compiler-rt|libcxxabi|libcxx|libunwind|tapi\/cmake_install.cmake/d' llvm_build_final/projects/cmake_install.cmake

exit 0

# There is no way of having libc++.dylib instruct the linker to add a relative rpath, though that would be nice.
#
Expand All @@ -343,5 +342,3 @@ exit 0
# To iterate on clang/clang++ frontend changes, edit for example:
# /Users/vagrant/conda/automated-build/bootstrap/mcf-x-build/cross-compiler/work/tools/clang/lib/Frontend/InitHeaderSearch.cpp

cd /Users/vagrant/conda/automated-build/bootstrap/mcf-x-build/cross-compiler/work/llvm_build/tools/clang/tools/driver
make VERBOSE=1 ; echo && echo && echo && echo && echo && echo && CONDA_BUILD_SYSROOT=/Users/vagrant/conda/automated-build/bootstrap/mcf-x-build/cross-compiler/work/bootstrap/MacOSX10.9.sdk ../../../../bin/clang++ -v ~/hw.cpp --sysroot /Users/vagrant/conda/automated-build/bootstrap/mcf-x-build/cross-compiler/work/bootstrap/MacOSX10.9.sdk_not_used
8 changes: 4 additions & 4 deletions cross-compilers/llvm/install-llvm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ pushd llvm_build_final
make install DESTDIR="${DEST}"
popd
pushd "${DEST}"/"${PWD}"/prefix
# Remove bits that are packaged in llvm-lto-tapi
# (which llvm depends upon)
rm include/llvm-c/lto.h
rm lib/libLTO.dylib
cp -Rf * "${PREFIX}"
if [[ -e bin/clang ]]; then
echo "hmm, llvm contains clang"
exit 1
fi
popd

0 comments on commit e913d34

Please sign in to comment.