fix(snappy)

closes #5810
This commit is contained in:
Jacob Heider 2024-04-05 11:55:03 -04:00
parent e15a53549a
commit 62494914a1
No known key found for this signature in database
GPG key ID: 51E3FD0EE62677B6
2 changed files with 1 additions and 27 deletions

View file

@ -1,23 +0,0 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c3062e2..0ed2c1c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -61,18 +61,6 @@ else(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")
endif(NOT CMAKE_CXX_FLAGS MATCHES "-Wall")
- # Use -Wextra for clang and gcc.
- if(NOT CMAKE_CXX_FLAGS MATCHES "-Wextra")
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wextra")
- endif(NOT CMAKE_CXX_FLAGS MATCHES "-Wextra")
-
- # Use -Werror for clang only.
- if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
- if(NOT CMAKE_CXX_FLAGS MATCHES "-Werror")
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror")
- endif(NOT CMAKE_CXX_FLAGS MATCHES "-Werror")
- endif(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
-
# Disable C++ exceptions.
string(REGEX REPLACE "-fexceptions" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-exceptions")

View file

@ -12,11 +12,8 @@ build:
gnu.org/patch: '*' gnu.org/patch: '*'
script: script:
# disable -Werror (because there are warnings lol) # disable -Werror (because there are warnings lol)
- patch -p1 <props/CMakeLists.txt.patch
# disable no-rtti, since it messes up folly # disable no-rtti, since it messes up folly
- run: | - sed -i -e 's/ -Werror//g' -e '/# Disable RTTI./{N;N;d;}' CMakeLists.txt
sed -i.bak -e '/# Disable RTTI./{N;N;d;}' CMakeLists.txt
rm CMakeLists.txt.bak
- cmake . $ARGS - cmake . $ARGS
- make install - make install
- make clean - make clean