-
Notifications
You must be signed in to change notification settings - Fork 19.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10310 from lovehackintosh/bump-tools
- Loading branch information
Showing
67 changed files
with
507 additions
and
2,620 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- a/Modules/FindLibLZMA.cmake | ||
+++ b/Modules/FindLibLZMA.cmake | ||
@@ -43,7 +43,13 @@ This module will set the following varia | ||
version number as a string (ex: "5.0.3") | ||
#]=======================================================================] | ||
|
||
-find_path(LIBLZMA_INCLUDE_DIR lzma.h ) | ||
+if(UNIX) | ||
+ find_package(PkgConfig QUIET) | ||
+ pkg_search_module(PC_liblzma liblzma) | ||
+endif() | ||
+ | ||
+find_path(LIBLZMA_INCLUDE_DIR lzma.h HINTS ${PC_liblzma_INCLUDEDIR} ${PC_liblzma_INCLUDE_DIRS}) | ||
+find_library(LIBLZMA_LIBRARY NAMES lzma HINTS ${PC_liblzma_LIBDIR} ${PC_liblzma_LIBRARY_DIRS}) | ||
if(NOT LIBLZMA_LIBRARY) | ||
find_library(LIBLZMA_LIBRARY_RELEASE NAMES lzma liblzma NAMES_PER_DIR PATH_SUFFIXES lib) | ||
find_library(LIBLZMA_LIBRARY_DEBUG NAMES lzmad liblzmad NAMES_PER_DIR PATH_SUFFIXES lib) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- a/Modules/FindZLIB.cmake | ||
+++ b/Modules/FindZLIB.cmake | ||
@@ -85,10 +85,13 @@ else() | ||
set(ZLIB_NAMES_DEBUG zd zlibd zdlld zlibd1 zlib1d zlibstaticd zlibwapid zlibvcd zlibstatd) | ||
endif() | ||
|
||
-# Try each search configuration. | ||
-foreach(search ${_ZLIB_SEARCHES}) | ||
- find_path(ZLIB_INCLUDE_DIR NAMES zlib.h ${${search}} PATH_SUFFIXES include) | ||
-endforeach() | ||
+if(UNIX) | ||
+ find_package(PkgConfig QUIET) | ||
+ pkg_search_module(PC_zlib zlib) | ||
+endif() | ||
+ | ||
+find_path(ZLIB_INCLUDE_DIR zlib.h HINTS ${PC_zlib_INCLUDEDIR} ${PC_zlib_INCLUDE_DIRS}) | ||
+find_library(ZLIB_LIBRARY NAMES z HINTS ${PC_zlib_LIBDIR} ${PC_zlib_LIBRARY_DIRS}) | ||
|
||
# Allow ZLIB_LIBRARY to be set manually, as the location of the zlib library | ||
if(NOT ZLIB_LIBRARY) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- a/Utilities/cmlibarchive/CMakeLists.txt | ||
+++ b/Utilities/cmlibarchive/CMakeLists.txt | ||
@@ -630,8 +630,13 @@ IF(ENABLE_ZSTD) | ||
SET(ZSTD_FIND_QUIETLY TRUE) | ||
ENDIF (ZSTD_INCLUDE_DIR) | ||
|
||
- FIND_PATH(ZSTD_INCLUDE_DIR zstd.h) | ||
- FIND_LIBRARY(ZSTD_LIBRARY NAMES zstd libzstd) | ||
+ IF(UNIX) | ||
+ FIND_PACKAGE(PkgConfig QUIET) | ||
+ PKG_SEARCH_MODULE(PC_ZSTD libzstd) | ||
+ ENDIF() | ||
+ | ||
+ FIND_PATH(ZSTD_INCLUDE_DIR zstd.h HINTS ${PC_ZSTD_INCLUDEDIR} ${PC_ZSTD_INCLUDE_DIRS}) | ||
+ FIND_LIBRARY(ZSTD_LIBRARY NAMES zstd HINTS ${PC_ZSTD_LIBDIR} ${PC_ZSTD_LIBRARY_DIRS}) | ||
INCLUDE(FindPackageHandleStandardArgs) | ||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(ZSTD DEFAULT_MSG ZSTD_LIBRARY ZSTD_INCLUDE_DIR) | ||
ELSE(ENABLE_ZSTD) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- a/gnu/xalloc-oversized.h | ||
+++ b/gnu/xalloc-oversized.h | ||
@@ -52,7 +52,7 @@ typedef size_t __xalloc_count_type; | ||
#elif ((5 <= __GNUC__ \ | ||
|| (__has_builtin (__builtin_mul_overflow) \ | ||
&& __has_builtin (__builtin_constant_p))) \ | ||
- && !__STRICT_ANSI__) | ||
+ && !__STRICT_ANSI__) && !defined(__clang__) | ||
# define xalloc_oversized(n, s) \ | ||
(__builtin_constant_p (n) && __builtin_constant_p (s) \ | ||
? __xalloc_oversized (n, s) \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.