diff options
author | Andrew Nelless | 2015-06-18 15:24:45 +0100 |
---|---|---|
committer | Andrew Nelless | 2015-06-18 15:24:45 +0100 |
commit | 20e54846998affdede814f65229dfdfea0fd1913 (patch) | |
tree | 400ad023350c2a207811240314643382528bfbd3 /PKGBUILD | |
download | aur-20e54846998affdede814f65229dfdfea0fd1913.tar.gz |
Initial commit. Memory Sanitizer enabled debug build of libc++
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..9a6d4d471130 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,37 @@ +# $Id$ +# Maintainer: Andrew Nelless <andrew@nelless.net> +# Contributor: Daniel Micay <danielmicay@gmail.com> +# Contributor: MThinkCpp <mtc.maintainer[at]outlook.com> +pkgname=libc++-msan +pkgver=3.6.0 +pkgrel=1 +pkgdesc='Standard C++ library implementation from the LLVM project (Memory Sanitizer enabled)' +url='http://libcxx.llvm.org' +license=('custom:University of Illinois/NCSA Open Source License') +arch=('i686' 'x86_64') +# gcc-libs needed for libgcc_s, because Arch doesn't use a pure compiler-rt clang +depends=('glibc' 'libc++abi' 'gcc-libs') +makedepends=('clang' 'subversion' 'cmake') +provides=('libc++') +conflicts=('libc++') +source=("http://www.llvm.org/releases/$pkgver/libcxx-${pkgver}.src.tar.xz") +md5sums=('5d4a2ff4e2023eaa3f2025e26274d504') +options=('debug' '!strip') +install=${pkgname}.install + +build() { + mkdir -p libcxx-${pkgver}.src/build + cd libcxx-${pkgver}.src/build + CXXFLAGS="-Qunused-arguments" CFLAGS="-Qunused-arguments" \ + cmake -G "Unix Makefiles" -DLIBCXX_CXX_ABI=libcxxabi \ + -DLIBCXX_LIBCXXABI_INCLUDE_PATHS=/usr/include/cxxabi \ + -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ \ + -DLLVM_USE_SANITIZER=MemoryWithOrigins \ + -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=/usr "$srcdir/libcxx-${pkgver}.src" + make +} +package() { + install -Dm644 libcxx-${pkgver}.src/LICENSE.TXT "$pkgdir/usr/share/licenses/$pkgname/license.txt" + cd libcxx-${pkgver}.src/build + make DESTDIR="$pkgdir" install +} |