hadrian: build C/C++ with split sections when enabled
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)
Please register or sign in to comment