aminya / aminya/project_options
GCC warning and optimization flags could be used by clang when include-what-you-use is enabled
Open
Nobody has claimed this yet.
bug
- Dominant language
- CMake
- Stars
- 373
- Forks
- 54
- Avg merge
- 2h 59m
- Merged PRs (30d)
- 8
Description
I see the following messages raised when include-what-you-use is running during cmake build:
warning: optimization flag '-fno-fat-lto-objects' is not supported
error: unknown warning option '-Wduplicated-cond' [-Werror,-Wunknown-warning-option]
error: unknown warning option '-Wduplicated-branches' [-Werror,-Wunknown-warning-option]
error: unknown warning option '-Wlogical-op'; did you mean '-Wlong-long'? [-Werror,-Wunknown-warning-option]
error: unknown warning option '-Wuseless-cast' [-Werror,-Wunknown-warning-option]
These warnings are set by CompilerWarnings.cmake.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with CompilerWarnings.cmake and trace how warning and optimization flags are selected during the CMake build when include-what-you-use runs. Reproduce the reported diagnostics with that configuration, then verify that the clang-based run no longer receives unsupported GCC-only flags or fails on unknown-warning errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cmake, cpp
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100