forked from gentoo/gentoo
-
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.
dev-libs/hyperscan: bug fixes: #674218, #707486, #722802
* support non-English locales; The patch is taken from intel/hyperscan#217 (comment) * respect cpu_flags_x86 USE flags * respect -O flags * set release build type; CMAKE_BUILD_TYPE=Release disables -Werror flag which used to trigger false positive error in GCC-10. intel/hyperscan#239 Closes: https://bugs.gentoo.org/674218 Closes: https://bugs.gentoo.org/707486 Closes: https://bugs.gentoo.org/722802 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Petr Vaněk <arkamar@atlas.cz>
- Loading branch information
Showing
2 changed files
with
34 additions
and
1 deletion.
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,20 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index 83197af..297a3b3 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -187,9 +187,9 @@ else() | ||
set (EXEC_ARGS ${CC_ARG1} -c -Q --help=target -march=native -mtune=native) | ||
execute_process(COMMAND ${CMAKE_C_COMPILER} ${EXEC_ARGS} | ||
OUTPUT_VARIABLE _GCC_OUTPUT) | ||
- string(FIND "${_GCC_OUTPUT}" "Known" POS) | ||
- string(SUBSTRING "${_GCC_OUTPUT}" 0 ${POS} _GCC_OUTPUT) | ||
- string(REGEX REPLACE ".*march=[ \t]*([^ \n]*)[ \n].*" "\\1" | ||
+ string(FIND "${_GCC_OUTPUT}" "march" POS) | ||
+ string(SUBSTRING "${_GCC_OUTPUT}" ${POS} -1 _GCC_OUTPUT) | ||
+ string(REGEX REPLACE "march=[ \t]*([^ \n]*)[ \n].*" "\\1" | ||
GNUCC_ARCH "${_GCC_OUTPUT}") | ||
|
||
# test the parsed flag | ||
-- | ||
2.26.2 | ||
|
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