fangohr / octopus-in-spack

Develop Octopus in spack (software packaging)
BSD 3-Clause "New" or "Revised" License
3 stars 4 forks source link

Add no var tracking assignments for debug builds #62

Closed iamashwin99 closed 1 year ago

iamashwin99 commented 1 year ago

Fixes https://github.com/fangohr/octopus-in-spack/issues/61 We pass the no vartracking assignments flag to speed up compilation when debugging is required. gcc 10+ fortran does something called Variable Tracking at Assignments This is enabled by default and to disable it we add -fno-var-tracking-assignments.

iamashwin99 commented 1 year ago

Initially I thought that this flag is useful for when you dont have debug options, but from the discussion yesterday with Martin Leuders and Henning, it is clear that this flag is useful only in debug variant. I have updated the code and the comments to reflect that. @fangohr could you please check the changes and re approve.

iamashwin99 commented 1 year ago

This MR has been included in https://github.com/fangohr/octopus-in-spack/pull/70