One more s390x fix
OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/llvm?expand=0&rev=274
This commit is contained in:
parent
d2b9d62c97
commit
e05640c01f
18
llvm-no-visibility.patch
Normal file
18
llvm-no-visibility.patch
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
Index: llvm-3.3/cmake/modules/HandleLLVMOptions.cmake
|
||||||
|
===================================================================
|
||||||
|
--- llvm-3.3.orig/cmake/modules/HandleLLVMOptions.cmake
|
||||||
|
+++ llvm-3.3/cmake/modules/HandleLLVMOptions.cmake
|
||||||
|
@@ -104,13 +104,6 @@ if( LLVM_ENABLE_PIC )
|
||||||
|
# On Windows all code is PIC. MinGW warns if -fPIC is used.
|
||||||
|
else()
|
||||||
|
add_flag_or_print_warning("-fPIC")
|
||||||
|
-
|
||||||
|
- if( WIN32 OR CYGWIN)
|
||||||
|
- # MinGW warns if -fvisibility-inlines-hidden is used.
|
||||||
|
- else()
|
||||||
|
- check_cxx_compiler_flag("-fvisibility-inlines-hidden" SUPPORTS_FVISIBILITY_INLINES_HIDDEN_FLAG)
|
||||||
|
- append_if(SUPPORTS_FVISIBILITY_INLINES_HIDDEN_FLAG "-fvisibility-inlines-hidden" CMAKE_CXX_FLAGS)
|
||||||
|
- endif()
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
10
llvm.spec
10
llvm.spec
@ -58,6 +58,8 @@ Patch7: unreachable-code.patch
|
|||||||
Patch8: cmake-host-triple.patch
|
Patch8: cmake-host-triple.patch
|
||||||
# PATCH-FIX-OPENSUSE aarch64-suse-support.patch -- Enable AArch64 suse toolchain support
|
# PATCH-FIX-OPENSUSE aarch64-suse-support.patch -- Enable AArch64 suse toolchain support
|
||||||
Patch9: aarch64-suse-support.patch
|
Patch9: aarch64-suse-support.patch
|
||||||
|
# PATCH-FIX-OPENSUSE llvm-no-visibility.patch -- Disable visibility
|
||||||
|
Patch10: llvm-no-visibility.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: autoconf
|
BuildRequires: autoconf
|
||||||
BuildRequires: automake
|
BuildRequires: automake
|
||||||
@ -166,6 +168,9 @@ This package contains vim plugins for LLVM like syntax highlighting.
|
|||||||
%patch7 -p1
|
%patch7 -p1
|
||||||
%patch8 -p1
|
%patch8 -p1
|
||||||
%patch9 -p1
|
%patch9 -p1
|
||||||
|
%ifarch s390 s390x
|
||||||
|
%patch10 -p1
|
||||||
|
%endif
|
||||||
|
|
||||||
# We hardcode i586
|
# We hardcode i586
|
||||||
rm tools/clang/test/Driver/x86_features.c
|
rm tools/clang/test/Driver/x86_features.c
|
||||||
@ -306,6 +311,11 @@ for i in crash-narrowfunctiontest metadata remove_arguments_test; do
|
|||||||
rm ../test/BugPoint/$i.ll;
|
rm ../test/BugPoint/$i.ll;
|
||||||
done
|
done
|
||||||
|
|
||||||
|
%ifarch s390 s390x
|
||||||
|
for i in TestClassDecl.m TestClassForwardDecl.m c-index-getCursor-test.m; do
|
||||||
|
rm ../tools/clang/test/Index/$i
|
||||||
|
%endif
|
||||||
|
|
||||||
make check
|
make check
|
||||||
make clang-test
|
make clang-test
|
||||||
%endif
|
%endif
|
||||||
|
Loading…
Reference in New Issue
Block a user