[GHC] #16214: Hadrian prof flavour doesn't build a compiler which you can profile

#16214: Hadrian prof flavour doesn't build a compiler which you can profile -------------------------------------+------------------------------------- Reporter: mpickering | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Build System | Version: 8.6.3 (Hadrian) | Keywords: newcomer | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- After building a compiler with the `prof` flavour. I tried to use it with the `-xc` option. {{{ ./hadrian/build.sh --flavour=prof _build/stage1/bin/ghc A.hs +RTS -xc }}} But apparently {{{ ghc: the flag -xc requires the program to be built with -prof }}} So it seems that the `prof` flavour is broken. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/16214 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#16214: Hadrian prof flavour doesn't build a compiler which you can profile -------------------------------------+------------------------------------- Reporter: mpickering | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Build System | Version: 8.6.3 (Hadrian) | Resolution: | Keywords: newcomer Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by mpickering): The place where this logic is implemented is `programContext` but `programContext` is always immediately passed to `programPath` which ignores anything about the ways so no wonder this doesn't work. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/16214#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#16214: Hadrian prof flavour doesn't build a compiler which you can profile -------------------------------------+------------------------------------- Reporter: mpickering | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Build System | Version: 8.6.3 (Hadrian) | Resolution: | Keywords: newcomer Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by mpickering): MR: https://gitlab.haskell.org/ghc/ghc/merge_requests/179 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/16214#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#16214: Hadrian prof flavour doesn't build a compiler which you can profile -------------------------------------+------------------------------------- Reporter: mpickering | Owner: (none) Type: bug | Status: closed Priority: normal | Milestone: Component: Build System | Version: 8.6.3 (Hadrian) | Resolution: fixed | Keywords: newcomer Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by mpickering): * status: new => closed * resolution: => fixed Comment: Merged: cfe64019a70acc1bae76f2fa580d6654f8eb5bc4 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/16214#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#16214: Hadrian prof flavour doesn't build a compiler which you can profile
-------------------------------------+-------------------------------------
Reporter: mpickering | Owner: (none)
Type: bug | Status: closed
Priority: normal | Milestone:
Component: Build System | Version: 8.6.3
(Hadrian) |
Resolution: fixed | Keywords: newcomer
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by Ben Gamari
participants (1)
-
GHC