- Add llvm-remove-werror-date-time.patch to remove -Werror=date-time
for CXXFLAGS, gcc does not support it and it creeps into llvm-config --cflags OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/llvm?expand=0&rev=383
This commit is contained in:
parent
2ae9b25863
commit
0a1f64904d
14
llvm-remove-werror-date-time.patch
Normal file
14
llvm-remove-werror-date-time.patch
Normal file
@ -0,0 +1,14 @@
|
||||
Index: llvm-3.5.0.src/cmake/modules/HandleLLVMOptions.cmake
|
||||
===================================================================
|
||||
--- llvm-3.5.0.src.orig/cmake/modules/HandleLLVMOptions.cmake
|
||||
+++ llvm-3.5.0.src/cmake/modules/HandleLLVMOptions.cmake
|
||||
@@ -302,9 +302,6 @@ elseif( LLVM_COMPILER_IS_GCC_COMPATIBLE
|
||||
endif()
|
||||
endif (LLVM_ENABLE_WARNINGS)
|
||||
append_if(LLVM_ENABLE_WERROR "-Werror" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
|
||||
- if (NOT LLVM_ENABLE_TIMESTAMPS)
|
||||
- add_flag_if_supported("-Werror=date-time" WERROR_DATE_TIME)
|
||||
- endif ()
|
||||
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)
|
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Sep 17 11:01:31 UTC 2014 - idonmez@suse.com
|
||||
|
||||
- Add llvm-remove-werror-date-time.patch to remove -Werror=date-time
|
||||
for CXXFLAGS, gcc does not support it and it creeps into
|
||||
llvm-config --cflags
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Sep 17 10:53:20 UTC 2014 - idonmez@suse.com
|
||||
|
||||
|
@ -58,6 +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
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: binutils-devel >= 2.21.90
|
||||
BuildRequires: bison
|
||||
@ -162,6 +163,7 @@ This package contains the Python bindings to clang (C language) frontend for LLV
|
||||
%patch10
|
||||
%patch11
|
||||
%patch12
|
||||
%patch13 -p1
|
||||
|
||||
# Move into right place
|
||||
mv cfe-%{version}.src tools/clang
|
||||
|
Loading…
x
Reference in New Issue
Block a user