[LLVMbugs] [Bug 9159] New: .svn installed in /usr/share/llvm/cmake
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sun Feb 6 18:10:20 PST 2011
http://llvm.org/bugs/show_bug.cgi?id=9159
Summary: .svn installed in /usr/share/llvm/cmake
Product: Build scripts
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: cmake
AssignedTo: unassignedbugs at nondot.org
ReportedBy: oroppas at gmail.com
CC: llvmbugs at cs.uiuc.edu
Hi,
I noticed the redundant hidden svn directory ended up being installed
system-wise.
$ ls -la /usr/share/llvm/cmake
total 68
drwxr-xr-x 3 root root 4096 Feb 5 19:50 .
drwxr-xr-x 3 root root 4096 Feb 5 19:50 ..
-rw-r--r-- 1 root root 3876 Feb 4 09:28 AddLLVM.cmake
-rw-r--r-- 1 root root 492 Feb 4 09:28 AddLLVMDefinitions.cmake
-rw-r--r-- 1 root root 3813 Feb 4 09:28 ChooseMSVCCRT.cmake
-rw-r--r-- 1 root root 702 Feb 4 09:28 CMakeLists.txt
-rw-r--r-- 1 root root 1031 Feb 4 09:28 CrossCompileLLVM.cmake
-rw-r--r-- 1 root root 5092 Feb 4 09:28 HandleLLVMOptions.cmake
-rw-r--r-- 1 root root 1995 Feb 4 09:31 LLVM.cmake
-rw-r--r-- 1 root root 6495 Feb 4 09:28 LLVMConfig.cmake
-rw-r--r-- 1 root root 6328 Feb 4 09:28 LLVMLibDeps.cmake
-rw-r--r-- 1 root root 2863 Feb 4 09:28 LLVMProcessSources.cmake
drwxr-xr-x 6 root root 4096 Feb 5 19:50 .svn
-rw-r--r-- 1 root root 1983 Feb 4 15:52 TableGen.cmake
Here's how I build LLVM/Clang:
cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr \
-DBUILD_SHARED_LIBS:BOOL=ON \
-DCMAKE_CXX_FLAGS:STRING="-O2 -march=native -pipe" \
-DCMAKE_C_FLAGS:STRING="-O2 -march=native -pipe" \
-DLLVM_BUILD_EXAMPLES:BOOL=ON \
-DLLVM_BUILD_TESTS:BOOL=OFF \
-DLLVM_BUILD_TOOLS:BOOL=ON \
-DLLVM_ENABLE_THREADS:BOOL=ON \
-DLLVM_ENABLE_PEDANTIC:BOOL=ON \
-DLLVM_ENABLE_WARNINGS:BOOL=ON \
-DLLVM_ENABLE_WERROR:BOOL=OFF \
-DLLVM_TARGETS_TO_BUILD:STRING="X86;PTX" \
-DLLVM_TARGET_ARCH:STRING="X86" \
-DCLANG_BUILD_EXAMPLES:BOOL=ON \
-DCLANG_TEST_USE_VG:BOOL=OFF \
../$_svnmod || return 1
make || return 1
make DESTDIR=${pkgdir} install
Regards,
Ryuta
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list