forked from msys2/MINGW-packages
-
Notifications
You must be signed in to change notification settings - Fork 45
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 #115 from rimrul/mingw-w64-clang-18.1.2
clang: update to 18.1.6
- Loading branch information
Showing
12 changed files
with
157 additions
and
200 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
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,32 @@ | ||
--- a/cmake/modules/Findzstd.cmake | ||
+++ b/cmake/modules/Findzstd.cmake | ||
@@ -16,6 +16,8 @@ | ||
set(zstd_STATIC_LIBRARY_SUFFIX "\\${CMAKE_STATIC_LIBRARY_SUFFIX}$") | ||
endif() | ||
|
||
+find_package(zstd CONFIG QUIET) | ||
+if(NOT zstd_FOUND) | ||
find_path(zstd_INCLUDE_DIR NAMES zstd.h) | ||
find_library(zstd_LIBRARY NAMES zstd zstd_static) | ||
find_library(zstd_STATIC_LIBRARY NAMES | ||
@@ -27,16 +29,17 @@ | ||
zstd DEFAULT_MSG | ||
zstd_LIBRARY zstd_INCLUDE_DIR | ||
) | ||
+endif() | ||
|
||
if(zstd_FOUND) | ||
- if(zstd_LIBRARY MATCHES "${zstd_STATIC_LIBRARY_SUFFIX}$") | ||
+ if(zstd_LIBRARY MATCHES "${zstd_STATIC_LIBRARY_SUFFIX}$" AND NOT MINGW) | ||
set(zstd_STATIC_LIBRARY "${zstd_LIBRARY}") | ||
elseif (NOT TARGET zstd::libzstd_shared) | ||
add_library(zstd::libzstd_shared SHARED IMPORTED) | ||
- if(MSVC) | ||
+ if(WIN32) | ||
# IMPORTED_LOCATION is the path to the DLL and IMPORTED_IMPLIB is the "library". | ||
get_filename_component(zstd_DIRNAME "${zstd_LIBRARY}" DIRECTORY) | ||
- string(REGEX REPLACE "${CMAKE_INSTALL_LIBDIR}$" "${CMAKE_INSTALL_BINDIR}" zstd_DIRNAME "${zstd_DIRNAME}") | ||
+ string(REGEX REPLACE "\\${CMAKE_INSTALL_LIBDIR}$" "${CMAKE_INSTALL_BINDIR}" zstd_DIRNAME "${zstd_DIRNAME}") | ||
get_filename_component(zstd_BASENAME "${zstd_LIBRARY}" NAME) | ||
string(REGEX REPLACE "\\${CMAKE_LINK_LIBRARY_SUFFIX}$" "${CMAKE_SHARED_LIBRARY_SUFFIX}" zstd_BASENAME "${zstd_BASENAME}") | ||
set_target_properties(zstd::libzstd_shared PROPERTIES |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
...4-clang/0303-ignore-new-bfd-options.patch → ...64-llvm/0303-ignore-new-bfd-options.patch
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.