]> granicus.if.org Git - clang/commitdiff
[arcmt] Fix tests in non-darwin.
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Thu, 16 Jun 2011 02:41:46 +0000 (02:41 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Thu, 16 Jun 2011 02:41:46 +0000 (02:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@133140 91177308-0d34-0410-b5e6-96231b3b80d8

lib/ARCMigrate/ARCMT.cpp
test/ARCMT/assign-prop-with-arc-runtime.m
test/ARCMT/assign-prop-with-arc-runtime.m.result
test/ARCMT/rewrite-block-var.m
test/ARCMT/rewrite-block-var.m.result

index bb66da6a71c927e653043030218cb623e4af580c..98e593c0fa638bf9c07ed4ef1291aab4868c34c9 100644 (file)
@@ -125,6 +125,11 @@ CompilerInvocation *createInvocationForMigration(CompilerInvocation &origCI) {
   llvm::Triple triple(CInvok->getTargetOpts().Triple);
   if (triple.getOS() == llvm::Triple::IOS ||
       triple.getOS() == llvm::Triple::MacOSX) {
+    args.push_back("-ccc-host-triple");
+    std::string forcedTriple = triple.getArchName();
+    forcedTriple += "-apple-darwin10";
+    args.push_back(forcedTriple);
+
     unsigned Major, Minor, Micro;
     triple.getOSVersion(Major, Minor, Micro);
     llvm::SmallString<100> flag;
index b77b61ba468a91d030c8d4b8cedcce8c91de5ac6..49c25a7a6296760cd0a2c6bf0973236d7fcb6946 100644 (file)
@@ -1,5 +1,5 @@
 // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fobjc-nonfragile-abi -fsyntax-only -fobjc-arc -x objective-c %s.result
-// RUN: arcmt-test --args -triple x86_64-apple-macosx10.8 -fobjc-nonfragile-abi -fsyntax-only %s > %t
+// RUN: arcmt-test --args -triple x86_64-apple-macosx10.7 -fobjc-nonfragile-abi -fsyntax-only %s > %t
 // RUN: diff %t %s.result
 
 #include "Common.h"
index c5e5854e9afcb274e10d05e08f5db3f2b2bc7bfa..88b41de5b6e5cc99e7bb0b21bf99038dcd00db9e 100644 (file)
@@ -1,5 +1,5 @@
 // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fobjc-nonfragile-abi -fsyntax-only -fobjc-arc -x objective-c %s.result
-// RUN: arcmt-test --args -triple x86_64-apple-macosx10.8 -fobjc-nonfragile-abi -fsyntax-only %s > %t
+// RUN: arcmt-test --args -triple x86_64-apple-macosx10.7 -fobjc-nonfragile-abi -fsyntax-only %s > %t
 // RUN: diff %t %s.result
 
 #include "Common.h"
index 76f5d5092b2dcb6ec07f913c8876672bca12af4c..8053cfe77362fb27907c6c225da8dc8d1a11cf04 100644 (file)
@@ -1,5 +1,5 @@
 // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fobjc-nonfragile-abi -fblocks -fsyntax-only -fobjc-arc -x objective-c %s.result
-// RUN: arcmt-test --args -triple x86_64-apple-macosx10.8 -fobjc-nonfragile-abi -fblocks -fsyntax-only %s > %t
+// RUN: arcmt-test --args -triple x86_64-apple-macosx10.7 -fobjc-nonfragile-abi -fblocks -fsyntax-only %s > %t
 // RUN: diff %t %s.result
 
 #include "Common.h"
index ac220ad2a7c7d95c60cbed52a81b7551edefe055..a2fa56d784605f5c7f20116953f33b8b7c737125 100644 (file)
@@ -1,5 +1,5 @@
 // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fobjc-nonfragile-abi -fblocks -fsyntax-only -fobjc-arc -x objective-c %s.result
-// RUN: arcmt-test --args -triple x86_64-apple-macosx10.8 -fobjc-nonfragile-abi -fblocks -fsyntax-only %s > %t
+// RUN: arcmt-test --args -triple x86_64-apple-macosx10.7 -fobjc-nonfragile-abi -fblocks -fsyntax-only %s > %t
 // RUN: diff %t %s.result
 
 #include "Common.h"