Skip to content

Commit

Permalink
Omit Werror
Browse files Browse the repository at this point in the history
  • Loading branch information
xhochy committed Mar 11, 2023
1 parent 7969a8f commit 737e0df
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
30 changes: 30 additions & 0 deletions recipe/0001-Omit-Werror-during-compilation.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
From 953b72083de19c04c6eb81b18bbe3e0ad1b29393 Mon Sep 17 00:00:00 2001
From: "Uwe L. Korn" <[email protected]>
Date: Sat, 11 Mar 2023 12:13:29 +0100
Subject: [PATCH] Omit Werror during compilation

---
CMakeLists.txt | 7 -------
1 file changed, 7 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 84bf188..bdb5903 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -70,13 +70,6 @@ else(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
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")
--
2.37.1 (Apple Git-137.1)

1 change: 1 addition & 0 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ source:
- 0001-Unbundle-gtest.patch
- 0002-Disable-BMI2.patch
- 0001-cmake-add-option-to-enable-disable-RTTI.patch
- 0001-Omit-Werror-during-compilation.patch

build:
number: 0
Expand Down

0 comments on commit 737e0df

Please sign in to comment.