summaryrefslogtreecommitdiffstats
path: root/Modules/Internal/CheckFlagCommonConfig.cmake
Commit message (Collapse)AuthorAgeFilesLines
* Merge topic 'revert-CheckCompilerFlag-clang-argument-unused'Brad King2023-03-141-3/+7
|\ | | | | | | | | | | | | | | | | 97fcd3bd30 CheckCompilerFlag: Revert 'Match the Clang "argument unused" output ...' Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Acked-by: scivision <michael@scivision.dev> Merge-request: !8322
| * CheckCompilerFlag: Revert 'Match the Clang "argument unused" output ...'Brad King2023-03-131-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Revert commit 5b45a3d0ce (CheckCompilerFlag: Match the Clang "argument unused" output for all languages, 2023-01-23, v3.26.0-rc1~38^2). It broke existing projects that were silently tolerating unrelated unused arguments in their checks for C and CXX. For example, using `CFLAGS=-nostdinc` or `CXXFLAGS=-nostdinc++` causes those flags to be used when driving the linker as well, and Clang warns they are unused in that case. Add a test case covering the now-restored behavior. Fixes: #24591
* | Modules:Check*: refactor: use block(SCOPE_FOR POLICIES)scivision2023-03-081-2/+3
|/
* CheckCompilerFlag: Match the Clang "argument unused" output for all languagesKOLANICH2023-01-241-7/+3
| | | | | | Improve detection of missing compiler flags: move "argument unused during compilation: .*" pattern from language-specific branches into the common list.
* CheckCompilerFlag: Add Swift SupportEvan Wilde2022-11-041-0/+2
| | | | | Plumb through Swift `check_compiler_flag` support. Add tests to check that valid flags work and invalid flags don't.
* CheckCompilerFlag: Fix regression in locale environment preservationBrad King2022-04-071-2/+2
| | | | | | | Fix a typo from commit 660e0d80ae (internal/CheckCompilerFlag: rely on common configuration, 2022-01-12, v3.23.0-rc1~124^2~1) that caused locale environment variables to not be restored after they are set during the check.
* internal/CheckCompilerFlag: rely on common configurationMarc Chevrier2022-01-141-0/+75
Extract configuration step from the CheckCompilerFlag command to enable to share it with future CheckLinkerFlag implementation