Customizing CMAKE_CXX_FLAGS is not possible with codeql-cli auto-build
Offen
question
- Vorherrschende Sprache
- CodeQL
- Sterne
- 10.1k
- Forks
- 2.1k
- Ø Merge
- 2 T. 15 Std.
- Gemergte PRs (30 T.)
- 141
Beschreibung
I have encountered an issue when using the default auto-build feature, as it does not pass the CMAKE_CXX_FLAGS parameter to cmake. Upon closer inspection, I found that the `cpp/tools/do-prebuild.sh` script uses a fixed `CXXFLAGS=-fpermissive`.
It would be beneficial if the script could allow reading the CXXFLAGS configuration from environment variables, like this:
```bash
export CXXFLAGS="'${CXXFLAGS:-} -fpermissive'"
```
```[tasklist]
### Tasks
```
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.