You've already forked macports-ports
mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
snappy: fix patch-no-disable-rtti
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user