diff --git a/llvm-remove-werror-date-time.patch b/llvm-remove-clang-only-flags.patch similarity index 54% rename from llvm-remove-werror-date-time.patch rename to llvm-remove-clang-only-flags.patch index fd92bee..9f749e7 100644 --- a/llvm-remove-werror-date-time.patch +++ b/llvm-remove-clang-only-flags.patch @@ -12,3 +12,17 @@ Index: llvm-3.5.0.src/cmake/modules/HandleLLVMOptions.cmake if (LLVM_ENABLE_CXX1Y) check_cxx_compiler_flag("-std=c++1y" CXX_SUPPORTS_CXX1Y) append_if(CXX_SUPPORTS_CXX1Y "-std=c++1y" CMAKE_CXX_FLAGS) +@@ -367,13 +364,6 @@ add_llvm_definitions( -D__STDC_CONSTANT_ + add_llvm_definitions( -D__STDC_FORMAT_MACROS ) + add_llvm_definitions( -D__STDC_LIMIT_MACROS ) + +-# clang doesn't print colored diagnostics when invoked from Ninja +-if (UNIX AND +- CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND +- CMAKE_GENERATOR STREQUAL "Ninja") +- append("-fcolor-diagnostics" CMAKE_C_FLAGS CMAKE_CXX_FLAGS) +-endif() +- + # Add flags for add_dead_strip(). + # FIXME: With MSVS, consider compiling with /Gy and linking with /OPT:REF? + # But MinSizeRel seems to add that automatically, so maybe disable these diff --git a/llvm.changes b/llvm.changes index a8f878e..2f20f7a 100644 --- a/llvm.changes +++ b/llvm.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Mon Sep 29 09:40:52 UTC 2014 - idonmez@suse.com + +- Rename llvm-remove-werror-date-time.patch to + llvm-remove-clang-only-flags.patch and remove more clang only + flags. + ------------------------------------------------------------------- Fri Sep 26 08:54:08 UTC 2014 - idonmez@suse.com diff --git a/llvm.spec b/llvm.spec index babadcb..567fcfc 100644 --- a/llvm.spec +++ b/llvm.spec @@ -58,7 +58,7 @@ Patch9: arm-remove-xfails.diff Patch10: clang-resourcedirs.patch Patch11: libcxxabi-exceptions.patch Patch12: libcxx-libdir.patch -Patch13: llvm-remove-werror-date-time.patch +Patch13: llvm-remove-clang-only-flags.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: binutils-devel >= 2.21.90 BuildRequires: bison