Skip to content
Snippets Groups Projects
Forked from Glasgow Haskell Compiler / GHC
Source project has a limited visibility.
  • Rodrigo Mesquita's avatar
    d986c98e
    configure: Drop unused AC_PROG_CPP · d986c98e
    Rodrigo Mesquita authored and Marge Bot's avatar Marge Bot committed
    In configure, we were calling `AC_PROG_CPP` but never making use of the
    $CPP variable it sets or reads.
    
    The issue is $CPP will show up in the --help output of configure,
    falsely advertising a configuration option that does nothing.
    
    The reason we don't use the $CPP variable is because HS_CPP_CMD is
    expected to be a single command (without flags), but AC_PROG_CPP, when
    CPP is unset, will set said variable to something like `/usr/bin/gcc -E`.
    Instead, we configure HS_CPP_CMD through $CC.
    d986c98e
    History
    configure: Drop unused AC_PROG_CPP
    Rodrigo Mesquita authored and Marge Bot's avatar Marge Bot committed
    In configure, we were calling `AC_PROG_CPP` but never making use of the
    $CPP variable it sets or reads.
    
    The issue is $CPP will show up in the --help output of configure,
    falsely advertising a configuration option that does nothing.
    
    The reason we don't use the $CPP variable is because HS_CPP_CMD is
    expected to be a single command (without flags), but AC_PROG_CPP, when
    CPP is unset, will set said variable to something like `/usr/bin/gcc -E`.
    Instead, we configure HS_CPP_CMD through $CC.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.