Building GHC head with clang on Mavericks
Kazu Yamamoto (=?iso-2022-jp?B?GyRCOzNLXE9CSScbKEI=?=)
kazu at iij.ad.jp
Tue Nov 19 01:05:15 UTC 2013
Hi,
> btw, is there really no whitespace before the '#' in line 2 ?
No space. The line starts with '#'.
For testing, I created a valid HS file using CPP and complied it with
GHC 7.6.3. A .hscpp file contains:
----
# 1 "a.hs"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "a.hs"
{-# LANGUAGE CPP #-}
----
The line 2 also starts with '#'.
Comparing this with the previous one, the difference is '1' in the end
of line.
----
# 1 "utils/genprimopcode/dist/build/Lexer.hs"
# 1 "<built-in>" 1
# 1 "utils/genprimopcode/dist/build/Lexer.hs" 2
{-# LANGUAGE CPP,MagicHash #-}
----
--Kazu
More information about the ghc-devs
mailing list