github / github/codeql

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

Aperta
#13,950 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
question
Lingua principale
CodeQL
Stelle
10.1k
Fork
2.1k
Merge medio
2g 15h
PR unite (30g)
141

Descrizione

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
```

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.