forked from microsoft/vcpkg
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[libpng] fix mips64 support (microsoft#26265)
* [libpng]fix mips64 support * [libpng]update port version * [libpng]update versiond database * fix msa support for mips * update port version database Co-authored-by: Jamlys Lee <[email protected]>
- Loading branch information
Showing
5 changed files
with
33 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index 6c1d632..a2a0d0d 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -158,8 +158,8 @@ endif() | ||
# set definitions and sources for MIPS | ||
if(CMAKE_SYSTEM_PROCESSOR MATCHES "mipsel*" OR | ||
CMAKE_SYSTEM_PROCESSOR MATCHES "mips64el*") | ||
- set(PNG_MIPS_MSA_POSSIBLE_VALUES on off) | ||
- set(PNG_MIPS_MSA "on" CACHE STRING "Enable MIPS_MSA optimizations: | ||
+ set(PNG_MIPS_MSA_POSSIBLE_VALUES on off check) | ||
+ set(PNG_MIPS_MSA "check" CACHE STRING "Enable MIPS_MSA optimizations: | ||
off: disable the optimizations") | ||
set_property(CACHE PNG_MIPS_MSA PROPERTY STRINGS | ||
${PNG_MIPS_MSA_POSSIBLE_VALUES}) | ||
@@ -173,6 +173,8 @@ if(CMAKE_SYSTEM_PROCESSOR MATCHES "mipsel*" OR | ||
mips/filter_msa_intrinsics.c) | ||
if(${PNG_MIPS_MSA} STREQUAL "on") | ||
add_definitions(-DPNG_MIPS_MSA_OPT=2) | ||
+ else() | ||
+ add_definitions(-DPNG_MIPS_MSA_CHECK_SUPPORTED) | ||
endif() | ||
else() | ||
add_definitions(-DPNG_MIPS_MSA_OPT=0) | ||
|
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