github / github/codeql

Customizing CMAKE_CXX_FLAGS is not possible with codeql-cli auto-build

Offen
#13,950 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
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

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.