From 901dee4d28d1993d0bf21d660bccf9039b0ff095 Mon Sep 17 00:00:00 2001 From: Tim Northover Date: Thu, 24 Oct 2013 10:48:50 +0000 Subject: ARM-Darwin: Use the *-*-darwin-eabi triple for v6m & v7m archs These arch arguments are used for embedded targets (obviously) which need a different calling convention to iOS. llvm-svn: 193328 --- clang/lib/Basic/Targets.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'clang/lib/Basic/Targets.cpp') diff --git a/clang/lib/Basic/Targets.cpp b/clang/lib/Basic/Targets.cpp index 843cc1bbf84..4deaa640f8a 100644 --- a/clang/lib/Basic/Targets.cpp +++ b/clang/lib/Basic/Targets.cpp @@ -149,7 +149,9 @@ static void getDarwinDefines(MacroBuilder &Builder, const LangOptions &Opts, Str[4] = '0' + (Rev % 10); Str[5] = '\0'; Builder.defineMacro("__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__", Str); - } else { + } else if (Triple.getArchName() != "thumbv6m" && + Triple.getArchName() != "thumbv7m" && + Triple.getArchName() != "thumbv7em") { // Note that the Driver allows versions which aren't representable in the // define (because we only get a single digit for the minor and micro // revision numbers). So, we limit them to the maximum representable -- cgit v1.2.3