Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • openfoam openfoam
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 425
    • Issues 425
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 9
    • Merge requests 9
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar

Planned maintenance at 14:00 - platform may be offline until 15:00 (UK times)

  • Development
  • openfoamopenfoam
  • Issues
  • #1256
Closed
Open
Issue created Mar 27, 2019 by Admin@OpenFOAM-adminMaintainer

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