[cfe-commits] r67135 - in /cfe/trunk: lib/Driver/ToolChain.cpp test/Driver/bindings.c
Daniel Dunbar
daniel at zuster.org
Tue Mar 17 17:12:34 PDT 2009
Author: ddunbar
Date: Tue Mar 17 19:12:31 2009
New Revision: 67135
URL: http://llvm.org/viewvc/llvm-project?rev=67135&view=rev
Log:
Driver: Add test case for -ccc-clang-archs (which, it turns out, was
inverted).
Modified:
cfe/trunk/lib/Driver/ToolChain.cpp
cfe/trunk/test/Driver/bindings.c
Modified: cfe/trunk/lib/Driver/ToolChain.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/ToolChain.cpp?rev=67135&r1=67134&r2=67135&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/ToolChain.cpp (original)
+++ cfe/trunk/lib/Driver/ToolChain.cpp Tue Mar 17 19:12:31 2009
@@ -55,8 +55,8 @@
// Finally, don't use clang if this isn't one of the user specified
// archs to build.
- if (!Host.getDriver().CCCClangArchs.empty() &&
- Host.getDriver().CCCClangArchs.count(getArchName()))
+ if (!Host.getDriver().CCCClangArchs.empty() &&
+ !Host.getDriver().CCCClangArchs.count(getArchName()))
return false;
return true;
Modified: cfe/trunk/test/Driver/bindings.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/bindings.c?rev=67135&r1=67134&r2=67135&view=diff
==============================================================================
--- cfe/trunk/test/Driver/bindings.c (original)
+++ cfe/trunk/test/Driver/bindings.c Tue Mar 17 19:12:31 2009
@@ -32,5 +32,9 @@
// RUN: clang-driver -ccc-print-bindings -ccc-no-clang-cpp -fsyntax-only -no-integrated-cpp -x c++ %s &> %t &&
// RUN: grep 'bind - "gcc::Preprocess", inputs: \[".*bindings.c"\], output: "/tmp/foo.ii"' %t &&
// RUN: grep 'bind - "clang", inputs: \["/tmp/foo.ii"\], output: (nothing)' %t &&
+// RUN: clang-driver -ccc-host-triple i386-apple-darwin9 -ccc-print-bindings -ccc-clang-archs i386 %s -S -arch ppc &> %t &&
+// RUN: grep 'bind - "gcc::Compile", inputs: \[".*bindings.c"\], output: "bindings.s"' %t &&
+// RUN: clang-driver -ccc-host-triple i386-apple-darwin9 -ccc-print-bindings -ccc-clang-archs ppc %s -S -arch ppc &> %t &&
+// RUN: grep 'bind - "clang", inputs: \[".*bindings.c"\], output: "bindings.s"' %t &&
// RUN: true
More information about the cfe-commits
mailing list