Skip to content
Snippets Groups Projects
Forked from Glasgow Haskell Compiler / GHC
13653 commits behind the upstream repository.
  • Daniel Gröber (dxld)'s avatar
    99e72769
    Catch preprocessor errors in downsweep · 99e72769
    Daniel Gröber (dxld) authored and Marge Bot's avatar Marge Bot committed
    This changes the way preprocessor failures are presented to the
    user. Previously the user would simply get an unlocated message on stderr
    such as:
    
        `gcc' failed in phase `C pre-processor'. (Exit code: 1)
    
    Now at the problematic source file is mentioned:
    
        A.hs:1:1: error:
            `gcc' failed in phase `C pre-processor'. (Exit code: 1)
    
    This also makes live easier for GHC API clients as the preprocessor error
    is now thrown as a SourceError exception.
    99e72769
    History
    Catch preprocessor errors in downsweep
    Daniel Gröber (dxld) authored and Marge Bot's avatar Marge Bot committed
    This changes the way preprocessor failures are presented to the
    user. Previously the user would simply get an unlocated message on stderr
    such as:
    
        `gcc' failed in phase `C pre-processor'. (Exit code: 1)
    
    Now at the problematic source file is mentioned:
    
        A.hs:1:1: error:
            `gcc' failed in phase `C pre-processor'. (Exit code: 1)
    
    This also makes live easier for GHC API clients as the preprocessor error
    is now thrown as a SourceError exception.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
PartialDownsweep.darwin.stderr 351 B