1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-26 01:27:28 +00:00

build: remove unused function checks (#3233)

* build: remove unused -DHAVE_ASPRINTF from xcode build

* build: remove unused -DHAVE_ZLIB from cmake and xcode

we use libdeflate instead

* build: remove unused -DHAVE_LIBGEN from xcode
This commit is contained in:
Charles Kerr 2022-06-08 13:35:07 -05:00 committed by GitHub
parent 0df6c23c7b
commit 12592e20d6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 15 deletions

View file

@ -126,7 +126,6 @@ set(LIBAPPINDICATOR_MINIMUM 0.4.90)
set(OPENSSL_MINIMUM 0.9.7) set(OPENSSL_MINIMUM 0.9.7)
set(POLARSSL_MINIMUM 1.2) set(POLARSSL_MINIMUM 1.2)
set(QT_MINIMUM 5.6) set(QT_MINIMUM 5.6)
set(ZLIB_MINIMUM 1.2.3)
if(WIN32) if(WIN32)
foreach(L C CXX) foreach(L C CXX)
@ -325,11 +324,6 @@ if(ENABLE_MAC)
tr_fixup_auto_option(ENABLE_MAC MAC_FOUND MAC_IS_REQUIRED) tr_fixup_auto_option(ENABLE_MAC MAC_FOUND MAC_IS_REQUIRED)
endif() endif()
find_package(ZLIB ${ZLIB_MINIMUM})
if(ZLIB_FOUND)
add_definitions(-DHAVE_ZLIB)
endif()
set(THIRD_PARTY_DIR ${CMAKE_SOURCE_DIR}/third-party) set(THIRD_PARTY_DIR ${CMAKE_SOURCE_DIR}/third-party)
tr_add_external_auto_library(DEFLATE libdeflate deflate) tr_add_external_auto_library(DEFLATE libdeflate deflate)

View file

@ -3616,9 +3616,6 @@
"-D__TRANSMISSION__", "-D__TRANSMISSION__",
"-DHAVE_FLOCK", "-DHAVE_FLOCK",
"-DHAVE_STRLCPY", "-DHAVE_STRLCPY",
"-DHAVE_ASPRINTF",
"-DHAVE_LIBGEN",
"-DHAVE_ZLIB",
"-DHAVE_ICONV", "-DHAVE_ICONV",
); );
OTHER_CPLUSPLUSFLAGS = "$(OTHER_CFLAGS)"; OTHER_CPLUSPLUSFLAGS = "$(OTHER_CFLAGS)";
@ -3831,9 +3828,6 @@
"-D__TRANSMISSION__", "-D__TRANSMISSION__",
"-DHAVE_FLOCK", "-DHAVE_FLOCK",
"-DHAVE_STRLCPY", "-DHAVE_STRLCPY",
"-DHAVE_ASPRINTF",
"-DHAVE_LIBGEN",
"-DHAVE_ZLIB",
"-DHAVE_ICONV", "-DHAVE_ICONV",
); );
OTHER_CPLUSPLUSFLAGS = "$(OTHER_CFLAGS)"; OTHER_CPLUSPLUSFLAGS = "$(OTHER_CFLAGS)";
@ -4118,9 +4112,6 @@
"-D__TRANSMISSION__", "-D__TRANSMISSION__",
"-DHAVE_FLOCK", "-DHAVE_FLOCK",
"-DHAVE_STRLCPY", "-DHAVE_STRLCPY",
"-DHAVE_ASPRINTF",
"-DHAVE_LIBGEN",
"-DHAVE_ZLIB",
"-DHAVE_ICONV", "-DHAVE_ICONV",
); );
OTHER_CPLUSPLUSFLAGS = "$(OTHER_CFLAGS)"; OTHER_CPLUSPLUSFLAGS = "$(OTHER_CFLAGS)";