Skip to content
This repository was archived by the owner on Nov 1, 2021. It is now read-only.

Commit d0ba7fc

Browse files
committed
[arcmt] Fix tests in non-darwin.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@133140 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent fd8af77 commit d0ba7fc

5 files changed

+9
-4
lines changed

lib/ARCMigrate/ARCMT.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,11 @@ CompilerInvocation *createInvocationForMigration(CompilerInvocation &origCI) {
125125
llvm::Triple triple(CInvok->getTargetOpts().Triple);
126126
if (triple.getOS() == llvm::Triple::IOS ||
127127
triple.getOS() == llvm::Triple::MacOSX) {
128+
args.push_back("-ccc-host-triple");
129+
std::string forcedTriple = triple.getArchName();
130+
forcedTriple += "-apple-darwin10";
131+
args.push_back(forcedTriple);
132+
128133
unsigned Major, Minor, Micro;
129134
triple.getOSVersion(Major, Minor, Micro);
130135
llvm::SmallString<100> flag;

test/ARCMT/assign-prop-with-arc-runtime.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fobjc-nonfragile-abi -fsyntax-only -fobjc-arc -x objective-c %s.result
2-
// RUN: arcmt-test --args -triple x86_64-apple-macosx10.8 -fobjc-nonfragile-abi -fsyntax-only %s > %t
2+
// RUN: arcmt-test --args -triple x86_64-apple-macosx10.7 -fobjc-nonfragile-abi -fsyntax-only %s > %t
33
// RUN: diff %t %s.result
44

55
#include "Common.h"

test/ARCMT/assign-prop-with-arc-runtime.m.result

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fobjc-nonfragile-abi -fsyntax-only -fobjc-arc -x objective-c %s.result
2-
// RUN: arcmt-test --args -triple x86_64-apple-macosx10.8 -fobjc-nonfragile-abi -fsyntax-only %s > %t
2+
// RUN: arcmt-test --args -triple x86_64-apple-macosx10.7 -fobjc-nonfragile-abi -fsyntax-only %s > %t
33
// RUN: diff %t %s.result
44

55
#include "Common.h"

test/ARCMT/rewrite-block-var.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fobjc-nonfragile-abi -fblocks -fsyntax-only -fobjc-arc -x objective-c %s.result
2-
// RUN: arcmt-test --args -triple x86_64-apple-macosx10.8 -fobjc-nonfragile-abi -fblocks -fsyntax-only %s > %t
2+
// RUN: arcmt-test --args -triple x86_64-apple-macosx10.7 -fobjc-nonfragile-abi -fblocks -fsyntax-only %s > %t
33
// RUN: diff %t %s.result
44

55
#include "Common.h"

test/ARCMT/rewrite-block-var.m.result

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fobjc-nonfragile-abi -fblocks -fsyntax-only -fobjc-arc -x objective-c %s.result
2-
// RUN: arcmt-test --args -triple x86_64-apple-macosx10.8 -fobjc-nonfragile-abi -fblocks -fsyntax-only %s > %t
2+
// RUN: arcmt-test --args -triple x86_64-apple-macosx10.7 -fobjc-nonfragile-abi -fblocks -fsyntax-only %s > %t
33
// RUN: diff %t %s.result
44

55
#include "Common.h"

0 commit comments

Comments
 (0)