[GHC] #14946: GHC Calls CPP for HS with -undef

GHC ghc-devs at haskell.org
Tue Mar 20 11:24:47 UTC 2018


#14946: GHC Calls CPP for HS with -undef
-------------------------------------+-------------------------------------
           Reporter:  Phyx-          |             Owner:  (none)
               Type:  bug            |            Status:  new
           Priority:  normal         |         Milestone:
          Component:  Compiler       |           Version:  8.2.2
           Keywords:                 |  Operating System:  Unknown/Multiple
       Architecture:                 |   Type of failure:  Incorrect result
  Unknown/Multiple                   |  at runtime
          Test Case:                 |        Blocked By:
           Blocking:                 |   Related Tickets:
Differential Rev(s):                 |         Wiki Page:
-------------------------------------+-------------------------------------
 GHC Is calling the C preprocessor when processing HS files with `-undef`
 which unsets and compiler pre-defines.

 Essentially it means you cannot use any normal compiler defines to check
 for platform or intrinsics support.

 Is this really the intended behavior?

-- 
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/14946>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list