summaryrefslogtreecommitdiff
path: root/compiler/parser/cutils.c
diff options
context:
space:
mode:
authorKarel Gardas <karel.gardas@centrum.cz>2014-08-17 23:26:39 +0200
committerKarel Gardas <karel.gardas@centrum.cz>2014-08-17 23:26:40 +0200
commit2d42564ac9ffe768f21078e40886fd066f87d1c3 (patch)
tree6b45864740da2138443c59b45f9e8468752d6001 /compiler/parser/cutils.c
parent96d04186e00fe2202b9953688492bb370d818bf1 (diff)
downloadhaskell-2d42564ac9ffe768f21078e40886fd066f87d1c3.tar.gz
workaround Solaris 11 GNU C CPP issue by using GNU C 3.4 as CPP
Summary: Solaris 11 distributed GNU C 4.5.x is configured in a way that its CPP is not working well while invoked from GHC. GHC runs it with -x assembler-with-cpp and in this particular configuration GNU C CPP does not provide any line-markers so GHC's output of errors or warnings is confusing since it points to preprocessed file in /tmp and not to the original Haskell file. Fortunately old GNU C 3.4.x is still provided by the OS and when installed it'll be used automatically as GHC CPP which is whole logic of this patch. So although we use modern GCC as a C compiler and assembler we use old GCC as a C preprocessor. Test Plan: validate Reviewers: austin Reviewed By: austin Subscribers: phaskell, simonmar, relrod, ezyang, carter Differential Revision: https://phabricator.haskell.org/D151
Diffstat (limited to 'compiler/parser/cutils.c')
0 files changed, 0 insertions, 0 deletions