-
Notifications
You must be signed in to change notification settings - Fork 178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Readme update #659
Readme update #659
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These look good to me, thanks!
What happens if you set |
It seems to build without any optimizations. To be specific, I delete the build and installation directories, then run the following from inside the directory
Then the printed compiler commands in the build process look like this example -- (no optimization flags)
Incidentally I believe that this behaviour has changed since last year sometime (when |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It sounds good to me. IMO it could be merged, pending @awvwgk 's comments.
The Release flags are currently empty stdlib/config/DefaultFlags.cmake Lines 7 to 9 in 3028a36
You could add the preferred options there and we can rely on |
I would propose to use the same compiler options as for the release option of
|
@awvwgk Are you good with these changes? Can this PR be merged? |
Thank you all. I will merge it. |
This pull request explains some CMake options that affect stdlib builds.
The first issue is that user-specified compiler optimizations in
FFLAGS
are overridden by the default the stdlib CMake setup. This means that, in the original README, the use of FFLAGS was not having any effect.-DCMAKE_BUILD_TYPE
. This can be setup to avoid default optimizations (while retaining flags that are essential to compile stdlib). This allows optimization flags inFFLAGS
to be used.The second issue is that by default, the user does not see what commands CMake is using to compile the code. This makes it difficult to notice problems like those above.
-DCMAKE_VERBOSE_MAKEFILE=On
, which prints the compiler options.I am a CMake novice, so it would be good to have this checked by an expert like @awvwgk .