Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • openfoam openfoam
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 480
    • Issues 480
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 10
    • Merge requests 10
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Model experiments
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Development
  • openfoamopenfoam
  • Issues
  • #1256

Extracting used compiler flags

Functionality to add/problem to solve

When compiling third-party applications that are to be used together with OpenFOAM it is reasonable to use the same compiler flags as wmake does. To provide a concrete example, I want to compile Google Test using wmake flags. Sourceflux provides a tutorial on that, see refs, where they use a pretty simple python script to extract the compiler flags. The script doesn't work with OpenFOAM-plus, however, because the flags are spread across multiple files and imported using includes in the rule-file.

Target audience

Developers looking to compile third-party applications with the same compiler flags as OpenFOAM

Proposal

There is a $WM_CXXFLAGS variable defined, but it doesn't contain the warning flags. I could not find a variable containing all the flags. Perhaps, such a variable could be created?

What does success look like, and how can we measure that?

An easy way to obtain all the compiler flags.

Links / references

https://sourceflux.de/blog/google-test-and-openfoam

Edited Mar 27, 2019 by Admin
Assignee
Assign to
Time tracking