Skip to content
  • Cheng Shao's avatar
    6de1c17d
    hadrian: build C/C++ with split sections when enabled · 6de1c17d
    Cheng Shao authored
    When split sections is enabled, ensure -fsplit-sections is passed to
    GHC as well when invoking GHC to compile C/C++; and pass
    -ffunction-sections -fdata-sections to gcc/clang when compiling C/C++
    with the hadrian Cc builder. Fixes #23381.
    
    (cherry picked from commit 0958937e)
    (cherry picked from commit 7d5a22c2)
    6de1c17d
    hadrian: build C/C++ with split sections when enabled
    Cheng Shao authored
    When split sections is enabled, ensure -fsplit-sections is passed to
    GHC as well when invoking GHC to compile C/C++; and pass
    -ffunction-sections -fdata-sections to gcc/clang when compiling C/C++
    with the hadrian Cc builder. Fixes #23381.
    
    (cherry picked from commit 0958937e)
    (cherry picked from commit 7d5a22c2)
Loading