aboutsummaryrefslogtreecommitdiff
path: root/gcc/system.h
diff options
context:
space:
mode:
authorIain Sandoe <iain@sandoe.co.uk>2024-03-19 10:40:50 +0000
committerIain Sandoe <iain@sandoe.co.uk>2024-03-19 12:48:32 +0000
commite47330d0742c985fd8d5fe7089aa381d34967d61 (patch)
tree195447db44f36807e9069b2a619070f2e83305b3 /gcc/system.h
parente0e9499aeffdaca88f0f29334384aa5f710a81a4 (diff)
downloadgcc-e47330d0742c985fd8d5fe7089aa381d34967d61.zip
gcc-e47330d0742c985fd8d5fe7089aa381d34967d61.tar.gz
gcc-e47330d0742c985fd8d5fe7089aa381d34967d61.tar.bz2
libstdc++, Darwin: Do not use dev/null as the file for executables.
Darwin has a separate debug linker, which is invoked when the command line contains source files and debug is enabled. Using /dev/null as the executable name does not, therefore, work when debug is enabled, since the debug linker does not accept /dev/null as a valid executable name. The leads to incorrectly UNSUPPORTED testcases because of the unintended error result from the test compilation. The solution here is to use a temporary file that is deleted at the end of the test (which is the mechanism used elsewhere) libstdc++-v3/ChangeLog: * testsuite/lib/libstdc++.exp (v3_target_compile): Instead of /dev/null, use a temporary file for test executables on Darwin. Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
Diffstat (limited to 'gcc/system.h')
0 files changed, 0 insertions, 0 deletions