summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGleb Popov <6yearold@gmail.com>2017-08-14 20:56:44 -0400
committerBen Gamari <ben@smart-cactus.org>2017-08-14 21:32:17 -0400
commit21bd9b2f3f48af453348f40a740ee8f4c26fdace (patch)
tree47569ae13b7c3dc39276b37e013e4f79d1bf9b4e
parented7a830de6a2ea74dd6bb81f8ec55b9fe0b52f28 (diff)
downloadhaskell-21bd9b2f3f48af453348f40a740ee8f4c26fdace.tar.gz
Recognize FreeBSD compiler as Clang.
Reviewers: austin, bgamari Reviewed By: bgamari Subscribers: rwbarton, thomie Differential Revision: https://phabricator.haskell.org/D3840
-rw-r--r--compiler/main/SysTools.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/main/SysTools.hs b/compiler/main/SysTools.hs
index c73e47c16a..faf6f11736 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