From 7cb3ee5d0a4a110e7c604094f0d2102c87990b9b Mon Sep 17 00:00:00 2001 From: Tim Biermann Date: Sun, 8 Nov 2020 11:51:38 +0000 Subject: [PATCH] lldb: updated cmake syntax --- lldb/.signature | 4 ++-- lldb/Pkgfile | 15 +++++++++------ 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/lldb/.signature b/lldb/.signature index 4aae611b2..6b29239f5 100644 --- a/lldb/.signature +++ b/lldb/.signature @@ -1,5 +1,5 @@ untrusted comment: verify with /etc/ports/contrib.pub -RWSagIOpLGJF3/d0bD5mN1o0o6tHxP+ioG5NIL6SeqHsW+3ZFpfASAVuu+XWNKdDMtf3XtwntDXiPgB/+bq7X2923VA+if7DewE= -SHA256 (Pkgfile) = 612cb4513e9e03282a23d99a73ce9d7d7e31d15a38b1074362e02a2328f745c6 +RWSagIOpLGJF368LlOiWkuoHjLMMcvSEA/jZlPjufRtvZJkoY0jkGBFYwMdoJFWWG4f6I6xKTSs/TzXmgZSpngmmFJFxj16eUgk= +SHA256 (Pkgfile) = 8c8126dad6bc8915c374410d0d7dcd70b6c2a1db2b348bf34cb4c386ee7632cd SHA256 (.footprint) = 2b834f6b3742e340fd1eb66be8740b5ab2ae5247099645e2df5194ab54b72c5f SHA256 (lldb-10.0.1.src.tar.xz) = 07abe87c25876aa306e73127330f5f37d270b6b082d50cc679e31b4fc02a3714 diff --git a/lldb/Pkgfile b/lldb/Pkgfile index 52d5be245..08b8859c3 100644 --- a/lldb/Pkgfile +++ b/lldb/Pkgfile @@ -9,12 +9,15 @@ release=1 source=(https://github.com/llvm/llvm-project/releases/download/llvmorg-$version/lldb-$version.src.tar.xz) build() { - cmake -S$name-$version.src -Bbuild -GNinja \ - -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DLLVM_LINK_LLVM_DYLIB=ON \ - -DPYTHON_EXECUTABLE=/usr/bin/python3 \ - -DLLDB_USE_SYSTEM_SIX=1 + cmake -S $name-$version.src -B build -G Ninja \ + -D CMAKE_INSTALL_PREFIX=/usr \ + -D CMAKE_BUILD_TYPE=Release \ + -D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS -DNDEBUG" \ + -D CMAKE_C_FLAGS_RELEASE="$CFLAGS -DNDEBUG" \ + -D PYTHON_EXECUTABLE=/usr/bin/python3 \ + -D LLVM_LINK_LLVM_DYLIB=ON \ + -D LLDB_USE_SYSTEM_SIX=1 \ + -Wno-dev cmake --build build DESTDIR=$PKG cmake --install build