[GHC] #8393: hsc2hs copies #define/#undef directives to generated .hs file when cross-compiling

#8393: hsc2hs copies #define/#undef directives to generated .hs file when cross- compiling ------------------------------------+------------------------------------- Reporter: rwbarton | Owner: rwbarton Type: bug | Status: new Priority: normal | Milestone: Component: hsc2hs | Version: 7.7 Keywords: | Operating System: Unknown/Multiple Architecture: Unknown/Multiple | Type of failure: None/Unknown Difficulty: Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | ------------------------------------+------------------------------------- See summary. This causes a cross-compilation of ghc to fail while building GHC/Stack.hsc from libraries/base, because base.cabal no longer specifies `extensions: CPP` as of dfb52c3d5. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8393 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8393: hsc2hs copies #define/#undef directives to generated .hs file when cross- compiling -------------------------------------+------------------------------------ Reporter: rwbarton | Owner: rwbarton Type: bug | Status: patch Priority: normal | Milestone: Component: hsc2hs | Version: 7.7 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------ Changes (by rwbarton): * status: new => patch -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8393#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8393: hsc2hs copies #define/#undef directives to generated .hs file when cross- compiling -------------------------------------+------------------------------------ Reporter: rwbarton | Owner: rwbarton Type: bug | Status: patch Priority: normal | Milestone: Component: hsc2hs | Version: 7.7 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------ Description changed by hvr: Old description:
See summary. This causes a cross-compilation of ghc to fail while building GHC/Stack.hsc from libraries/base, because base.cabal no longer specifies `extensions: CPP` as of dfb52c3d5.
New description: See summary. This causes a cross-compilation of ghc to fail while building GHC/Stack.hsc from libraries/base, because base.cabal no longer specifies `extensions: CPP` as of [dfb52c3d5/base]. -- -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8393#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8393: hsc2hs copies #define/#undef directives to generated .hs file when cross-
compiling
-------------------------------------+------------------------------------
Reporter: rwbarton | Owner: rwbarton
Type: bug | Status: patch
Priority: normal | Milestone:
Component: hsc2hs | Version: 7.7
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture: Unknown/Multiple
Type of failure: None/Unknown | Difficulty: Unknown
Test Case: | Blocked By:
Blocking: | Related Tickets:
-------------------------------------+------------------------------------
Comment (by Austin Seipp

#8393: hsc2hs copies #define/#undef directives to generated .hs file when cross-
compiling
-------------------------------------+------------------------------------
Reporter: rwbarton | Owner: rwbarton
Type: bug | Status: patch
Priority: normal | Milestone:
Component: hsc2hs | Version: 7.7
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture: Unknown/Multiple
Type of failure: None/Unknown | Difficulty: Unknown
Test Case: | Blocked By:
Blocking: | Related Tickets:
-------------------------------------+------------------------------------
Comment (by Austin Seipp

#8393: hsc2hs copies #define/#undef directives to generated .hs file when cross-
compiling
-------------------------------------+------------------------------------
Reporter: rwbarton | Owner: rwbarton
Type: bug | Status: patch
Priority: normal | Milestone:
Component: hsc2hs | Version: 7.7
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture: Unknown/Multiple
Type of failure: None/Unknown | Difficulty: Unknown
Test Case: | Blocked By:
Blocking: | Related Tickets:
-------------------------------------+------------------------------------
Comment (by Austin Seipp

#8393: hsc2hs copies #define/#undef directives to generated .hs file when cross-
compiling
-------------------------------------+------------------------------------
Reporter: rwbarton | Owner: rwbarton
Type: bug | Status: closed
Priority: normal | Milestone:
Component: hsc2hs | Version: 7.7
Resolution: fixed | Keywords:
Operating System: Unknown/Multiple | Architecture: Unknown/Multiple
Type of failure: None/Unknown | Difficulty: Unknown
Test Case: | Blocked By:
Blocking: | Related Tickets:
-------------------------------------+------------------------------------
Changes (by thoughtpolice):
* status: patch => closed
* resolution: => fixed
Comment:
Merged, although I totally botched the commit references...
{{{
commit 4a0f67704d89712f8493a0c7eccffa9243d6ef09
Author: Reid Barton
participants (1)
-
GHC