[Patches] Add configuration flag PROFILE=yes
Erik Schnetter
schnetter at cct.lsu.edu
Fri May 12 23:51:47 CDT 2006
Add a new configuration flag PROFILE=yes, which enables profiling in
a build. This flag is equivalent to OPTIMISE=yes and DEBUG=yes.
Additional compiler options {C,CXX,F77,F90}_PROFILE_FLAGS are also
introduced.
The configuration stage sets the F77 flags to the F90 flags if an F90
compiler is found. This flag setting was done too early, namely
before the default values for the F90 flags were set. This flag
setting has been moved to a later time.
The link command used undefined make variables $(OPTIMISE_C) etc.
These variables have been removed. Instead $(CXX_OPTIMISE_FLAGS)
etc. are added to the link statement. This makes the linker pick up
the correct flags e.g. for profiling.
-erik
--
Erik Schnetter <schnetter at cct.lsu.edu>
My email is as private as my paper mail. I therefore support encrypting
and signing email messages. Get my PGP key from www.keyserver.net.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: profile.diff
Type: application/octet-stream
Size: 81116 bytes
Desc: not available
Url : http://www.cactuscode.org/pipermail/patches/attachments/20060512/e9c144e9/attachment.obj
More information about the Patches
mailing list