From 0987b1aa0143f5954ef78d835805e3a2b9077dc6 Mon Sep 17 00:00:00 2001 From: autoantwort <41973254+autoantwort@users.noreply.github.com> Date: Fri, 10 Mar 2023 20:20:57 +0100 Subject: [PATCH] [libdivide] no werror et al (#30105) --- ports/libdivide/no-werror.patch | 19 +++++++++++++++++++ ports/libdivide/portfile.cmake | 2 ++ ports/libdivide/vcpkg.json | 1 + versions/baseline.json | 2 +- versions/l-/libdivide.json | 5 +++++ 5 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 ports/libdivide/no-werror.patch diff --git a/ports/libdivide/no-werror.patch b/ports/libdivide/no-werror.patch new file mode 100644 index 00000000000..b59fa059b04 --- /dev/null +++ b/ports/libdivide/no-werror.patch @@ -0,0 +1,19 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 7800a13..f01a139 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -15,10 +15,10 @@ include(CMakeSanitize) + + # Maximum warnings level & warnings as error + add_compile_options( +- "$<$:/W4;/WX>" +- "$<$:-Wall;-Wextra;-pedantic;-Werror>" +- "$<$:-Wall;-Wextra;-pedantic;-Werror>" +- "$<$:-Wall;-Wextra;-pedantic;-Werror>" ++ "$<$:/W4>" ++ "$<$:-Wall;-Wextra;-pedantic>" ++ "$<$:-Wall;-Wextra;-pedantic>" ++ "$<$:-Wall;-Wextra;-pedantic>" + ) + + # Build options ################################################ diff --git a/ports/libdivide/portfile.cmake b/ports/libdivide/portfile.cmake index 78f42e5bd6f..7a082e92cbb 100644 --- a/ports/libdivide/portfile.cmake +++ b/ports/libdivide/portfile.cmake @@ -4,6 +4,8 @@ vcpkg_from_github( REF 5.0 SHA512 89581efab63a0668405196d4d8188e03f3b87027e9014ef7238e1d79fe369d8abbca0e44b00cf02b00be29c272feb34c9b9290313596adbef9b46ae0715c29dd HEAD_REF master + PATCHES + no-werror.patch ) vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS diff --git a/ports/libdivide/vcpkg.json b/ports/libdivide/vcpkg.json index ff29d9d5d3e..a379f7eca4d 100644 --- a/ports/libdivide/vcpkg.json +++ b/ports/libdivide/vcpkg.json @@ -1,6 +1,7 @@ { "name": "libdivide", "version": "5.0", + "port-version": 1, "description": "libdivide.h is a header-only C/C++ library for optimizing integer division.", "homepage": "https://github.com/ridiculousfish/libdivide", "dependencies": [ diff --git a/versions/baseline.json b/versions/baseline.json index bef4a055baf..0326f9ae930 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -3858,7 +3858,7 @@ }, "libdivide": { "baseline": "5.0", - "port-version": 0 + "port-version": 1 }, "libdjinterop": { "baseline": "0.16.0", diff --git a/versions/l-/libdivide.json b/versions/l-/libdivide.json index ac46b6fe3f5..c9e7604af79 100644 --- a/versions/l-/libdivide.json +++ b/versions/l-/libdivide.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "c646f5a84a408b48ecdad13220a2186fa4b4e692", + "version": "5.0", + "port-version": 1 + }, { "git-tree": "b13f3b926e61d104e85e04bf192fabe29cd5f05e", "version": "5.0",