diff options
author | brooks <brooks@FreeBSD.org> | 2009-02-21 00:39:51 +0800 |
---|---|---|
committer | brooks <brooks@FreeBSD.org> | 2009-02-21 00:39:51 +0800 |
commit | 1db95e6c9c147066dbb316e8e14932254c708b71 (patch) | |
tree | 09575308fbf6583433d05dc79fc375555bb8b29a /devel/llvm-devel | |
parent | 0a82551393e4a1ad9613214c1ce31c7889d6d3fc (diff) | |
download | freebsd-ports-gnome-1db95e6c9c147066dbb316e8e14932254c708b71.tar.gz freebsd-ports-gnome-1db95e6c9c147066dbb316e8e14932254c708b71.tar.zst freebsd-ports-gnome-1db95e6c9c147066dbb316e8e14932254c708b71.zip |
Patch the clang target selection code to support amd64 in addition to
x86_64 in triples.
Reported by: Michael Reifenberger <mike at reifenberger dot com>
Diffstat (limited to 'devel/llvm-devel')
-rw-r--r-- | devel/llvm-devel/Makefile | 2 | ||||
-rw-r--r-- | devel/llvm-devel/files/patch-tools_clang_lib_Basic_Targets.cpp | 14 |
2 files changed, 15 insertions, 1 deletions
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) |