# --- T2-COPYRIGHT-NOTE-BEGIN --- # T2 SDE: package/*/hyperscan/no-native-tune.patch # Copyright (C) 2024 The T2 SDE Project # # This Copyright note is generated by scripts/Create-CopyPatch, # more information can be found in the files COPYING and README. # # This patch file is dual-licensed. It is available under the license the # patched project is licensed under, as long as it is an OpenSource license # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms # of the GNU General Public License version 2 as used by the T2 SDE. # --- T2-COPYRIGHT-NOTE-END --- --- hyperscan-5.4.2/CMakeLists.txt.vanilla 2024-11-28 23:43:43.426666704 +0100 +++ hyperscan-5.4.2/CMakeLists.txt 2024-11-28 23:43:46.980000044 +0100 @@ -182,7 +182,7 @@ string(REGEX REPLACE "-O[^ ]*" "" CMAKE_CXX_FLAGS_${CONFIG} "${CMAKE_CXX_FLAGS_${CONFIG}}") endforeach () - if (CMAKE_COMPILER_IS_GNUCC) + if (0) message(STATUS "gcc version ${CMAKE_C_COMPILER_VERSION}") # If gcc doesn't recognise the host cpu, then mtune=native becomes # generic, which isn't very good in some cases. march=native looks at