Opened 4 years ago

Closed 4 years ago

#10981 closed bug (fixed)

Not detecting clang correctly

Reported by: erikd Owned by: erikd
Priority: normal Milestone: 8.0.1
Component: Compiler Version: 7.11
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Building GHC failed Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s): Phab:D1336
Wiki Page:

Description (last modified by erikd)

I have Jenkins build job that builds GHC from Git using Clang as the C compiler.

Recently a Debian update changed clang's -v output to:

Debian clang version 3.5.2-2 (tags/RELEASE_352/final) (based on LLVM 3.5.2)
Target: x86_64-pc-linux-gnu
Thread model: posix

which is no longer being detected by compiler/main/SysTools.hs as Clang.

Working around this is trivially easy. Patch in progress.

Change History (3)

comment:1 Changed 4 years ago by erikd

Description: modified (diff)
Differential Rev(s): Phab:D1336

comment:2 Changed 4 years ago by Erik de Castro Lopo <erikd@…>

In 96dc041/ghc:

Systools.hs: Improve detection of GCC and Clang

Test Plan: Build on Debian using `--with-gcc=clang`

Reviewers: austin, bgamari

Subscribers: thomie

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

GHC Trac Issues: #10981

comment:3 Changed 4 years ago by erikd

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.