From 8b9a01f2d76a37b0191a0abd630cce423cd687af Mon Sep 17 00:00:00 2001 From: Brooks Davis Date: Fri, 20 Feb 2009 16:39:51 +0000 Subject: [PATCH] Patch the clang target selection code to support amd64 in addition to x86_64 in triples. Reported by: Michael Reifenberger --- devel/llvm-devel/Makefile | 2 +- .../files/patch-tools_clang_lib_Basic_Targets.cpp | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 devel/llvm-devel/files/patch-tools_clang_lib_Basic_Targets.cpp diff --git a/devel/llvm-devel/Makefile b/devel/llvm-devel/Makefile index 50637fa5fc41..a554cbbe4905 100644 --- a/devel/llvm-devel/Makefile +++ b/devel/llvm-devel/Makefile @@ -7,7 +7,7 @@ PORTNAME= llvm DISTVERSION= 2.4.snap${SNAPDATE} -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= devel lang MASTER_SITES= ${MASTER_SITE_LOCAL} MASTER_SITE_SUBDIR= brooks diff --git a/devel/llvm-devel/files/patch-tools_clang_lib_Basic_Targets.cpp b/devel/llvm-devel/files/patch-tools_clang_lib_Basic_Targets.cpp new file mode 100644 index 000000000000..07a8f79b6695 --- /dev/null +++ b/devel/llvm-devel/files/patch-tools_clang_lib_Basic_Targets.cpp @@ -0,0 +1,14 @@ + +$FreeBSD$ + +--- tools/clang/lib/Basic/Targets.cpp.orig ++++ tools/clang/lib/Basic/Targets.cpp +@@ -1012,7 +1012,7 @@ + return new SparcV8TargetInfo(T); + } + +- if (T.find("x86_64-") == 0) { ++ if (T.find("x86_64-") == 0 || T.find("amd64-") == 0) { + if (isDarwin) + return new DarwinX86_64TargetInfo(T); + if (isLinux)