mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-04 12:01:41 +02:00
community/z3: fix build with None build type
This commit is contained in:
parent
bc29e069da
commit
afd9ecdf23
@ -10,7 +10,8 @@ license="MIT"
|
||||
makedepends="cmake python3"
|
||||
subpackages="$pkgname-dev py3-$pkgname:py3:noarch"
|
||||
source="https://github.com/Z3Prover/z3/archive/z3-$pkgver.tar.gz
|
||||
0001-Fix-fail-to-build-on-clang-and-g.patch"
|
||||
0001-Fix-fail-to-build-on-clang-and-g.patch
|
||||
none-build-type.patch"
|
||||
builddir="$srcdir/z3-z3-$pkgver"
|
||||
|
||||
build() {
|
||||
@ -51,4 +52,5 @@ py3() {
|
||||
}
|
||||
|
||||
sha512sums="145e2b2f1fa4edd0917107c7e1d54d779c7ed85c48af2ce6def4c90d1c4db05f74c9657e173cedf48770589fbe484c97fa1923295271cd3792523ffc4f67ed0c z3-4.8.7.tar.gz
|
||||
4463b00e84d81447e62f6363163e6a2fa072fe1a1e1bab29c966ae00a222ab1a2e7429b6527bc5d81defb376590dca7bbc06b970fa780d77384011b573ffd7fd 0001-Fix-fail-to-build-on-clang-and-g.patch"
|
||||
4463b00e84d81447e62f6363163e6a2fa072fe1a1e1bab29c966ae00a222ab1a2e7429b6527bc5d81defb376590dca7bbc06b970fa780d77384011b573ffd7fd 0001-Fix-fail-to-build-on-clang-and-g.patch
|
||||
9a99777d29558ffcc15fa43e3dc1da46261469c60561c5bc3bcaab40164ed59c45386ed597f27c8160e69acf16d0d8f3ddb06a53b52886ab146d54becc9ccb02 none-build-type.patch"
|
||||
|
||||
17
community/z3/none-build-type.patch
Normal file
17
community/z3/none-build-type.patch
Normal file
@ -0,0 +1,17 @@
|
||||
The build system includes its one check for available CMake build types.
|
||||
This check is incorrect as it doesn't include the None build type.
|
||||
|
||||
See: https://github.com/Z3Prover/z3/issues/3071
|
||||
|
||||
diff -upr z3-z3-4.8.7.orig/CMakeLists.txt z3-z3-4.8.7/CMakeLists.txt
|
||||
--- z3-z3-4.8.7.orig/CMakeLists.txt 2020-02-21 23:54:37.917997553 +0100
|
||||
+++ z3-z3-4.8.7/CMakeLists.txt 2020-02-21 23:55:22.061925859 +0100
|
||||
@@ -129,7 +129,7 @@ set(Z3_DEPENDENT_EXTRA_CXX_LINK_FLAGS ""
|
||||
# Build type
|
||||
################################################################################
|
||||
message(STATUS "CMake generator: ${CMAKE_GENERATOR}")
|
||||
-set(available_build_types Debug Release RelWithDebInfo MinSizeRel)
|
||||
+set(available_build_types None Debug Release RelWithDebInfo MinSizeRel)
|
||||
if (DEFINED CMAKE_CONFIGURATION_TYPES)
|
||||
# Multi-configuration build (e.g. Visual Studio and Xcode). Here
|
||||
# CMAKE_BUILD_TYPE doesn't matter
|
||||
Loading…
x
Reference in New Issue
Block a user