summaryrefslogtreecommitdiffstats
path: root/Help/guide/tutorial/Step2/MathFunctions
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-04-21 14:55:21 (GMT)
committerBrad King <brad.king@kitware.com>2022-04-21 15:35:30 (GMT)
commitc2341ece47f994baec57296d7a08dcf6bf34f8e9 (patch)
tree6d753150c73e34574cde2876dc3428451820af90 /Help/guide/tutorial/Step2/MathFunctions
parent75d2faae52086ddf8fccc8566695b3915eb14ffd (diff)
downloadCMake-c2341ece47f994baec57296d7a08dcf6bf34f8e9.zip
CMake-c2341ece47f994baec57296d7a08dcf6bf34f8e9.tar.gz
CMake-c2341ece47f994baec57296d7a08dcf6bf34f8e9.tar.bz2
CheckLinkerFlag: Catch linker warning when the checked flag is ignored
Prior to commit 219dde4ea8 (CheckPIESupported: now uses any SYSROOT settings, 2022-01-16, v3.23.0-rc1~110^2), the checks for `-pie` and `-no_pie` on macOS failed due to executing the compiler directly without any `-isysroot`, producing `ld: library not found for -lc++`. See issues #23053 and #19180. The failing check for `-pie` was a bug because it is supported on macOS, both for `x86_64` and `arm64`, and the commit fixed that check. However, `-no_pie` is not supported on macOS `arm64`. The above commit was only able to detect that due to commit f745e0497e (CheckCompilerFlags: Catch linker warning about ignored flags, 2022-01-03, v3.23.0-rc1~174^2), which we need to revert due to issue #23432. Instead, catch only the linker warning about the exact flag being checked.
Diffstat (limited to 'Help/guide/tutorial/Step2/MathFunctions')
0 files changed, 0 insertions, 0 deletions