SHA256
1
0
forked from pool/llvm

- Don't run gcc for ada files, just fail instead.

OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/llvm?expand=0&rev=108
This commit is contained in:
Ismail Dönmez 2011-12-25 15:48:32 +00:00 committed by Git OBS Bridge
parent ec4cb546de
commit 0620bc6bf0
3 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,13 @@
Index: llvm/tools/clang/lib/Driver/Types.cpp
===================================================================
--- llvm.orig/tools/clang/lib/Driver/Types.cpp
+++ llvm/tools/clang/lib/Driver/Types.cpp
@@ -158,8 +158,6 @@ types::ID types::lookupTypeForExtension(
.Case("hh", TY_CXXHeader)
.Case("ll", TY_LLVM_IR)
.Case("hpp", TY_CXXHeader)
- .Case("ads", TY_Ada)
- .Case("adb", TY_Ada)
.Case("ast", TY_AST)
.Case("c++", TY_CXX)
.Case("C++", TY_CXX)

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sun Dec 25 15:29:46 UTC 2011 - idonmez@suse.com
- Don't run gcc for ada files, just fail instead.
-------------------------------------------------------------------
Thu Dec 22 15:33:24 UTC 2011 - idonmez@suse.com

View File

@ -36,6 +36,8 @@ Patch2: clang-cmake-lib.patch
Patch3: assume-opensuse.patch
# PATCH-FIX-UPSTREAM clang-glibc2.14.patch idoenmez@suse.de -- Support glibc 2.14 headers
Patch4: clang-glibc2.14.patch
# PATCH-FIX-OPENSUSE clang-disable-ada-extension.patch idoenmez@suse.de -- Don't run gcc for ada files
Patch5: clang-disable-ada-extension.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: autoconf
BuildRequires: automake
@ -133,6 +135,7 @@ This package contains vim plugins for LLVM like syntax highlighting.
cd tools/clang
%patch4
cd ../..
%patch5 -p1
sed -i s,SVN_REVISION,\"%{_revision}\",g tools/clang/lib/Basic/Version.cpp