summaryrefslogtreecommitdiffstats
path: root/clang-3.0-cygwin-dllexport.patch
diff options
context:
space:
mode:
Diffstat (limited to 'clang-3.0-cygwin-dllexport.patch')
-rw-r--r--clang-3.0-cygwin-dllexport.patch10
1 files changed, 10 insertions, 0 deletions
diff --git a/clang-3.0-cygwin-dllexport.patch b/clang-3.0-cygwin-dllexport.patch
new file mode 100644
index 0000000..c62ef8b
--- /dev/null
+++ b/clang-3.0-cygwin-dllexport.patch
@@ -0,0 +1,10 @@
+--- origsrc/llvm-3.0.src/tools/clang/lib/Sema/TargetAttributesSema.cpp 2011-09-30 15:32:22.000000000 -0500
++++ src/llvm-3.0.src/tools/clang/lib/Sema/TargetAttributesSema.cpp 2012-07-04 02:21:41.395136700 -0500
+@@ -239,6 +239,7 @@ namespace {
+ const AttributeList &Attr, Sema &S) const {
+ const llvm::Triple &Triple(S.Context.getTargetInfo().getTriple());
+ if (Triple.getOS() == llvm::Triple::Win32 ||
++ Triple.getOS() == llvm::Triple::Cygwin ||
+ Triple.getOS() == llvm::Triple::MinGW32) {
+ switch (Attr.getKind()) {
+ case AttributeList::AT_dllimport: HandleDLLImportAttr(D, Attr, S);