Sven Tennie pushed to branch wip/supersven/correctly_propagate_host-build-target at Glasgow Haskell Compiler / GHC

Commits:

1 changed file:

Changes:

  • distrib/configure.ac.in
    ... ... @@ -153,6 +153,14 @@ AC_SUBST([EnableStrictGhcToolchainCheck])
    153 153
     
    
    154 154
     dnl ** Which gcc to use?
    
    155 155
     dnl --------------------------------------------------------------
    
    156
    +
    
    157
    +dnl AC_PROG_CC sets CFLAGS to `-g -O2` if if the env var is empty.
    
    158
    +dnl Same goes for AC_PROG_CXX and CXXFLAGS.
    
    159
    +dnl `-O2` is fine, but we don't want to build with debugging symbols (`-g`) by
    
    160
    +dnl default as this massively increases binary sizes.
    
    161
    +CFLAGS=${CFLAGS:-"-O2"}
    
    162
    +CXXFLAGS=${CXXFLAGS:-"-O2"}
    
    163
    +
    
    156 164
     AC_PROG_CC([cc gcc clang])
    
    157 165
     AC_PROG_CXX([c++ g++ clang++])
    
    158 166
     # Work around #24324