Pass '-x c++' and '-std=c++11' to `cc` for cpp files, in Hadrian

'-x c++' was found to be required on Darwin Clang 11 and 12.
'-std=c++' was found to be needed on Clang 12 but not 11.
25 jobs for !6082 with fix/hadrian_cc_cpp in 314 minutes and 46 seconds (queued for 2 seconds)
latest merge request
Name Stage Failure
failed
validate-x86_64-darwin Full Build
ghc-amd64-apple-darwin.tar.xz: found 1 matching files and directories 
junit.xml: found 1 matching files and directories

Uploading artifacts as "archive" to coordinator... ok
id=719812 responseStatus=201 Created token=fzU93fCN
Uploading artifacts...
Runtime platform
arch=amd64 os=darwin pid=67244 revision=v13.9.0 version=13.9.0
junit.xml: found 1 matching files and directories

Uploading artifacts as "junit" to coordinator... ok
id=719812 responseStatus=201 Created token=fzU93fCN
Cleaning up file based variables
ERROR: Job failed: exit status 1
failed
validate-aarch64-darwin Full Build
ghc-arm64-apple-darwin.tar.xz: found 1 matching files and directories 
WARNING: junit.xml: no matching files
Uploading artifacts as "archive" to coordinator... ok
id=719813 responseStatus=201 Created token=98ZdX61i
Uploading artifacts...
Runtime platform
arch=amd64 os=darwin pid=98747 revision=v13.12.0 version=13.12.0
WARNING: junit.xml: no matching files
ERROR: No files to upload
Cleaning up file based variables
ERROR: Job failed: exit status 1
failed
validate-aarch64-linux-deb10-llvm Full Build
Uploading artifacts...
ghc-aarch64-linux-deb10.tar.xz: found 1 matching files and directories

junit.xml: found 1 matching files and directories

performance-metrics.tsv: found 1 matching files and directories

Uploading artifacts as "archive" to coordinator... ok
id=719815 responseStatus=201 Created token=vxRGDHP_
Uploading artifacts...
junit.xml: found 1 matching files and directories

Uploading artifacts as "junit" to coordinator... ok
id=719815 responseStatus=201 Created token=vxRGDHP_
ERROR: Job failed: exit code 1
failed
validate-aarch64-linux-deb10 Full Build
Uploading artifacts...
ghc-aarch64-linux-deb10.tar.xz: found 1 matching files and directories

junit.xml: found 1 matching files and directories

performance-metrics.tsv: found 1 matching files and directories

Uploading artifacts as "archive" to coordinator... ok
id=719814 responseStatus=201 Created token=pXE_u_Mb
Uploading artifacts...
junit.xml: found 1 matching files and directories

Uploading artifacts as "junit" to coordinator... ok
id=719814 responseStatus=201 Created token=pXE_u_Mb
ERROR: Job failed: exit code 1
failed
perf-nofib Testing
make: *** [boot] Error 1
mk/ghc-recurse.mk:65: recipe for target 'boot' failed
make: Leaving directory '/builds/zyklotomic/ghc/nofib'
Uploading artifacts for failed job
Uploading artifacts...
WARNING: nofib.log: no matching files
ERROR: No files to upload
Cleaning up file based variables
ERROR: Job failed: exit code 1