snappy: fix patch-no-disable-rtti

This commit is contained in:
Eloy Lafuente
2025-08-12 04:39:22 +02:00
committed by GitHub
parent af594e9bf9
commit 7b6816da0e
2 changed files with 13 additions and 2 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ PortGroup github 1.0
github.setup google snappy 1.2.2
github.tarball_from archive
revision 1
revision 2
categories archivers
maintainers nomaintainer
license BSD
@@ -1,5 +1,5 @@
--- CMakeLists.txt 2025-03-26 23:19:22.000000000 +0800
+++ CMakeLists.txt 2025-04-30 06:00:15.000000000 +0800
+++ CMakeLists.txt 2025-04-30 06:23:14.000000000 +0800
@@ -52,9 +52,6 @@
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /EHs-c-")
add_definitions(-D_HAS_EXCEPTIONS=0)
@@ -10,3 +10,14 @@
else(MSVC)
# Use -Wall for clang and gcc.
if(NOT CMAKE_CXX_FLAGS MATCHES "-Wall")
@@ -81,10 +78,6 @@
# Disable C++ exceptions.
string(REGEX REPLACE "-fexceptions" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-exceptions")
-
- # Disable RTTI.
- string(REGEX REPLACE "-frtti" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-rtti")
endif(MSVC)
# BUILD_SHARED_LIBS is a standard CMake variable, but we declare it here to make