[commit: ghc] master: Recognize FreeBSD compiler as Clang. (21bd9b2)
git at git.haskell.org
git at git.haskell.org
Tue Aug 15 01:35:48 UTC 2017
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/21bd9b2f3f48af453348f40a740ee8f4c26fdace/ghc
>---------------------------------------------------------------
commit 21bd9b2f3f48af453348f40a740ee8f4c26fdace
Author: Gleb Popov <6yearold at gmail.com>
Date: Mon Aug 14 20:56:44 2017 -0400
Recognize FreeBSD compiler as Clang.
Reviewers: austin, bgamari
Reviewed By: bgamari
Subscribers: rwbarton, thomie
Differential Revision: https://phabricator.haskell.org/D3840
>---------------------------------------------------------------
21bd9b2f3f48af453348f40a740ee8f4c26fdace
compiler/main/SysTools.hs | 3 +++
1 file changed, 3 insertions(+)
diff --git a/compiler/main/SysTools.hs b/compiler/main/SysTools.hs
index c73e47c..faf6f11 100644
--- a/compiler/main/SysTools.hs
+++ b/compiler/main/SysTools.hs
@@ -868,6 +868,9 @@ getCompilerInfo' dflags = do
-- Regular clang
| any ("clang version" `isInfixOf`) stde =
return Clang
+ -- FreeBSD clang
+ | any ("FreeBSD clang version" `isInfixOf`) stde =
+ return Clang
-- XCode 5.1 clang
| any ("Apple LLVM version 5.1" `isPrefixOf`) stde =
return AppleClang51
More information about the ghc-commits
mailing list