[cfe-dev] small patch for FreeBSD
Brooks Davis
brooks at freebsd.org
Fri Feb 20 09:01:38 PST 2009
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)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20090220/3d742259/attachment.sig>
More information about the cfe-dev
mailing list