Hello community,

here is the log from the commit of package include-what-you-use for 
openSUSE:Factory checked in at 2020-04-10 23:54:09
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/include-what-you-use (Old)
 and      /work/SRC/openSUSE:Factory/.include-what-you-use.new.3248 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "include-what-you-use"

Fri Apr 10 23:54:09 2020 rev:9 rq:792943 version:0.13

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/include-what-you-use/include-what-you-use.changes    
    2019-11-25 00:08:33.695930164 +0100
+++ 
/work/SRC/openSUSE:Factory/.include-what-you-use.new.3248/include-what-you-use.changes
      2020-04-10 23:54:41.532762125 +0200
@@ -1,0 +2,5 @@
+Fri Apr 10 11:20:39 UTC 2020 - Aaron Puchert <[email protected]> 
+
+- Use c++_compiler instead of clang to avoid dependence oddities.
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ include-what-you-use.spec ++++++
--- /var/tmp/diff_new_pack.YoblWs/_old  2020-04-10 23:54:42.164762588 +0200
+++ /var/tmp/diff_new_pack.YoblWs/_new  2020-04-10 23:54:42.168762591 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package include-what-you-use
 #
-# Copyright (c) 2019 SUSE LLC.
+# Copyright (c) 2020 SUSE LLC
 # Copyright (c) 2019 Aaron Puchert.
 #
 # All modifications and additions to the file contributed by third parties
@@ -30,7 +30,7 @@
 Patch2:         iwyu_include_picker.patch
 Patch3:         remove-x86-specific-code.patch
 Patch4:         link-llvm9.patch
-BuildRequires:  clang9
+BuildRequires:  c++_compiler
 BuildRequires:  clang9-devel
 BuildRequires:  cmake
 BuildRequires:  libstdc++-devel
@@ -69,34 +69,12 @@
 %patch4 -p1
 
 %build
-# Make _lto_cflags compatible with Clang, deactivate LTO where it doesn't work.
-%ifnarch %{arm}
-%define _lto_cflags "-flto=thin"
-%else
-%define _lto_cflags %{nil}
-%endif
-
 # Remove obsolete files - this is now hardcoded into iwyu_include_picker.cc.
 rm gcc.libc.imp gcc.symbols.imp gcc.stl.headers.imp stl.c.headers.imp
 # This also obsoletes iwyu.gcc.imp.
 rm iwyu.gcc.imp
 
-# Since Clang is built using Clang, use it here too.
-%cmake \
-    -DCMAKE_C_COMPILER=clang \
-    -DCMAKE_CXX_COMPILER=clang++ \
-    -DCMAKE_AR=%{_bindir}/llvm-ar \
-    -DCMAKE_RANLIB=%{_bindir}/llvm-ranlib \
-    -DIWYU_LLVM_ROOT_PATH=%{_libdir} \
-    ..
-
-# ThinLTO uses multiple threads from the linker process for optimizations, 
which
-# causes an extremely high lock contention on allocations due to MALLOC_CHECK_,
-# so we deactivate it for compilation. The tests will have it activated again.
-MALLOC_CHECK_BACK=$MALLOC_CHECK_
-unset MALLOC_CHECK_
-%make_jobs
-MALLOC_CHECK_=$MALLOC_CHECK_BACK
+%cmake -DIWYU_LLVM_ROOT_PATH=%{_libdir} ..
 
 %install
 %cmake_install


Reply via email to