Skip to content

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

@quericy

Description

@quericy

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:

export CXXFLAGS="'${CXXFLAGS:-} -fpermissive'"
### Tasks

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions