Recognize FreeBSD compiler as Clang.
authorGleb Popov <6yearold@gmail.com>
Tue, 15 Aug 2017 00:56:44 +0000 (20:56 -0400)
committerBen Gamari <ben@smart-cactus.org>
Tue, 15 Aug 2017 01:32:17 +0000 (21:32 -0400)
Reviewers: austin, bgamari

Reviewed By: bgamari

Subscribers: rwbarton, thomie

Differential Revision: https://phabricator.haskell.org/D3840

compiler/main/SysTools.hs

index c73e47c..faf6f11 100644 (file)
@@ -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