public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/iwyu] f45: Updated to version 0.27.
@ 2026-10-05 7:15 Vitaly
0 siblings, 0 replies; only message in thread
From: Vitaly @ 2026-10-05 7:15 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/iwyu
Branch : f45
Commit : 54dcf914f0f79124bd6a20253a1139777e3fcd23
Author : Vitaly <vitaly@easycoding.org>
Date : 2026-10-05T09:14:39+02:00
Stats : +3/-193 in 4 file(s)
URL : https://src.fedoraproject.org/rpms/iwyu/c/54dcf914f0f79124bd6a20253a1139777e3fcd23?branch=f45
Log:
Updated to version 0.27.
---
diff --git a/iwyu-0.26-fix-libraries.patch b/iwyu-0.26-fix-libraries.patch
deleted file mode 100644
index 005c296..0000000
--- a/iwyu-0.26-fix-libraries.patch
+++ /dev/null
@@ -1,60 +0,0 @@
-From 816b81ce2129f5fe60b06261a166a05a3d22af27 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Kim=20Gr=C3=A4sman?= <kim.grasman@gmail.com>
-Date: Sat, 28 Mar 2026 14:15:04 +0100
-Subject: [PATCH] [cmake] Use vanilla add_library for static libraries
-
-The add_llvm_library macro has a lot of customization and
-parameterization to fit libraries into the LLVM conventions.
-
-Unfortunately the macro forces libraries to be built as SHARED if the
-BUILD_SHARED_LIBS option is on, no matter if we explicitly specify
-STATIC. This in turn led to packaging failures, because the shared
-libraries were not installed.
-
-Switch to using vanilla add_library, and make the libraries OBJECT
-libraries, which is the cheapest kind (we have no use for proper static
-libraries either). Use the llvm_update_compile_flags functions to make
-exception and RTTI flags consistent with LLVM.
-
-This reverts b828e17 and also e9a08a9, which is no longer necessary.
-
-Fixes #1961.
----
- CMakeLists.txt | 8 ++++++--
- 1 file changed, 6 insertions(+), 2 deletions(-)
-
-diff --git a/CMakeLists.txt b/CMakeLists.txt
-index 6f59e476b..422c21ff2 100644
---- a/CMakeLists.txt
-+++ b/CMakeLists.txt
-@@ -135,7 +135,8 @@ set(LLVM_LINK_COMPONENTS
- AllTargetsInfos
- )
-
--add_llvm_library(iwyu BUILDTREE_ONLY
-+add_library(iwyu
-+ OBJECT
- iwyu.cc
- iwyu_ast_util.cc
- iwyu_cache.cc
-@@ -152,6 +153,7 @@ add_llvm_library(iwyu BUILDTREE_ONLY
- iwyu_regex.cc
- iwyu_verrs.cc
- )
-+llvm_update_compile_flags(iwyu)
-
- add_llvm_executable(include-what-you-use
- iwyu_main.cc
-@@ -233,9 +235,11 @@ if (WIN32)
- endif()
-
- # Build vendored gtest library
--add_llvm_library(iwyu-gtest BUILDTREE_ONLY
-+add_library(iwyu-gtest
-+ OBJECT
- vendor/googletest/src/gtest-all.cc
- )
-+llvm_update_compile_flags(iwyu-gtest)
-
- target_include_directories(iwyu-gtest
- PUBLIC
diff --git a/iwyu-0.26-packaged-gtest.patch b/iwyu-0.26-packaged-gtest.patch
deleted file mode 100644
index dcce9e3..0000000
--- a/iwyu-0.26-packaged-gtest.patch
+++ /dev/null
@@ -1,125 +0,0 @@
-From 53fda738ddca6353d38d845a92b435c4e8495da0 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Kim=20Gr=C3=A4sman?= <kim.grasman@gmail.com>
-Date: Sat, 28 Mar 2026 15:34:01 +0100
-Subject: [PATCH] [cmake] Add IWYU_USE_SYSTEM_GTEST option
-
-The IWYU project prefers to bundle GTest because we know its exact
-version and we can control when to upgrade it, how to build it, etc.
-
-But some environments prefer to use a vetted system GTest over our
-bundled version, to allow for lifecycle control, patching, etc.
-
-Add a Boolean IWYU_USE_SYSTEM_GTEST option to let packagers use a system
-GTest (as found by CMake's find_package). Expose it to the IWYU build
-using a target alias.
-
-Fixes #1962.
----
- CMakeLists.txt | 77 ++++++++++++++++++++++++++++++--------------------
- 1 file changed, 46 insertions(+), 31 deletions(-)
-
-diff --git a/CMakeLists.txt b/CMakeLists.txt
-index 7ced3e81b..722872380 100644
---- a/CMakeLists.txt
-+++ b/CMakeLists.txt
-@@ -60,6 +60,11 @@ option(IWYU_LINK_CLANG_DYLIB
- ${CLANG_LINK_CLANG_DYLIB}
- )
-
-+option(IWYU_USE_SYSTEM_GTEST
-+ "Use system gtest instead of bundled version"
-+ off
-+)
-+
- # IWYU needs to know where to find Clang builtin headers (stddef.h, stdint.h,
- # etc). The builtin headers are shipped in the Clang resource directory.
- # You can configure IWYU's resource directory lookup using two options:
-@@ -234,47 +239,57 @@ if (WIN32)
- )
- endif()
-
--# Build vendored gtest library
--add_library(iwyu-gtest
-- OBJECT
-- vendor/googletest/src/gtest-all.cc
--)
--llvm_update_compile_flags(iwyu-gtest)
-+if (IWYU_USE_SYSTEM_GTEST)
-+ message(STATUS "IWYU: using system gtest")
-+ find_package(GTest CONFIG REQUIRED)
-
--target_include_directories(iwyu-gtest
-- PUBLIC
-- vendor/googletest/include
-- PRIVATE
-- vendor/googletest
--)
-+ # Make it available under the expected name.
-+ add_library(iwyu-gtest ALIAS GTest::gtest)
-+else()
-+ message(STATUS "IWYU: using bundled gtest")
-
--# gtest: Disable -Wcovered-switch-default if compiler supports it.
--include(CheckCompilerFlag)
--check_compiler_flag(CXX
-- -Wcovered-switch-default
-- iwyu_cxx_supports_covered_switch_default)
-+ # Build vendored gtest library.
-+ add_library(iwyu-gtest
-+ OBJECT
-+ vendor/googletest/src/gtest-all.cc
-+ )
-+ llvm_update_compile_flags(iwyu-gtest)
-
--if (iwyu_cxx_supports_covered_switch_default)
-- target_compile_options(iwyu-gtest
-+ target_include_directories(iwyu-gtest
-+ PUBLIC
-+ vendor/googletest/include
- PRIVATE
-- -Wno-covered-switch-default
-+ vendor/googletest
- )
--endif()
-
--# gtest: Disable use of cxxabi.h, which can cause conflict between libc++abi and
--# libsupc++. See https://github.com/llvm/llvm-project/issues/121300.
--target_compile_options(iwyu-gtest
-- PUBLIC
-- -DGTEST_HAS_CXXABI_H_=0
--)
-+ # gtest: Disable -Wcovered-switch-default if compiler supports it.
-+ include(CheckCompilerFlag)
-+ check_compiler_flag(CXX
-+ -Wcovered-switch-default
-+ iwyu_cxx_supports_covered_switch_default)
-
--# gtest: Use portable exception semantics for MSVC.
--if (MSVC)
-+ if (iwyu_cxx_supports_covered_switch_default)
-+ target_compile_options(iwyu-gtest
-+ PRIVATE
-+ -Wno-covered-switch-default
-+ )
-+ endif()
-+
-+ # gtest: Disable use of cxxabi.h, which can cause conflict between libc++abi and
-+ # libsupc++. See https://github.com/llvm/llvm-project/issues/121300.
- target_compile_options(iwyu-gtest
- PUBLIC
-- /EHsc
-+ -DGTEST_HAS_CXXABI_H_=0
- )
--endif()
-+
-+ # gtest: Use portable exception semantics for MSVC.
-+ if (MSVC)
-+ target_compile_options(iwyu-gtest
-+ PUBLIC
-+ /EHsc
-+ )
-+ endif()
-+endif(IWYU_USE_SYSTEM_GTEST)
-
- # Add unittest target.
- add_llvm_executable(iwyu-unittests
diff --git a/iwyu.spec b/iwyu.spec
index d62758b..3ac49ee 100644
--- a/iwyu.spec
+++ b/iwyu.spec
@@ -1,6 +1,6 @@
%global appname include-what-you-use
%global toolchain clang
-%global llvm_ver 22
+%global llvm_ver 23
%global __cc_clang clang-%{llvm_ver}
%global __cxx_clang clang++-%{llvm_ver}
@@ -12,7 +12,7 @@
%undefine _include_frame_pointers
Name: iwyu
-Version: 0.26
+Version: 0.27
Release: %autorelease
License: NCSA
@@ -20,11 +20,6 @@ Summary: C/C++ source files #include analyzer based on clang
URL: https://github.com/%{appname}/%{appname}
Source0: %{url}/archive/%{version}/%{appname}-%{version}.tar.gz
-# https://github.com/include-what-you-use/include-what-you-use/pull/1964
-Patch100: iwyu-0.26-fix-libraries.patch
-# https://github.com/include-what-you-use/include-what-you-use/pull/1965
-Patch101: iwyu-0.26-packaged-gtest.patch
-
# https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval
ExcludeArch: %{ix86}
diff --git a/sources b/sources
index 870875e..912b4f3 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (include-what-you-use-0.26.tar.gz) = dc7cd155d69bf5604de9560bd38b755b4f3194dc7ed358f36d0cb71015489b50f4743a85e8590bf016351442841c7f0dc7707d3db45f5949f3ad83d3395256d7
+SHA512 (include-what-you-use-0.27.tar.gz) = 82c04eaee610488a266938ef050fc169c66ac7624a12ec40afbfbeabcd7aedcf1387186ffb9f3c0ba665998e5c686d51fb8800d928e7074e8dc8a86336e074ec
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-05 7:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-05 7:15 [rpms/iwyu] f45: Updated to version 0.27 Vitaly
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox