I needed to apply the following patch to clang to get it to work for
me on amd64 under FreeBSD since we use amd64 in our platform triples
instead of x86_64.
-- Brooks
--- 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)