• Michael Sloan's avatar
    Use -fobject-code in the GHCi script for loading GHC · e94cc29e
    Michael Sloan authored
    Summary:
    My very last commit to D4904 removed -fobject-code.  I should have tested this
    more thoroughly, because it is required to do a fresh ghci load, as some code
    uses unboxed tuples.
    
    One of my motivations for doing this was that if you run the script without
    passing -odir / -hidir, it would pollute the source tree with .hi and .o files.
    This also appeared to break subsequent builds. I've made it much less likely
    that this will happen by instead specifying -odir and -hidir within the ghci
    script rather than on the commandline.
    
    I plan to open a separate diff which adds a test that these scripts work.
    
    Until this patch is merged, the workaround is to do `./utils/ghc-in-ghci/run.sh -fobject-code`
    
    Reviewers: bgamari, alpmestan, monoidal
    
    Reviewed By: alpmestan, monoidal
    
    Subscribers: alpmestan, rwbarton, thomie, carter
    
    Differential Revision: https://phabricator.haskell.org/D5015
    e94cc29e
.gitignore 4.06 KB