Skip to content
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

Set recommended compiler flags #249

Merged
merged 2 commits into from
Oct 8, 2023
Merged

Set recommended compiler flags #249

merged 2 commits into from
Oct 8, 2023

Conversation

ffoulkes
Copy link
Contributor

  • Set C and C++ compiler flags according to the Intel Secure Coding Standards.

@ffoulkes ffoulkes marked this pull request as ready for review August 16, 2023 04:48
@ffoulkes ffoulkes marked this pull request as draft August 16, 2023 16:31
@ffoulkes ffoulkes marked this pull request as ready for review August 16, 2023 22:31
@ffoulkes
Copy link
Contributor Author

Unfortunately, throwing in all the compiler flags IPAS recommends makes us incompatible with libraries that aren't built with (some of) the flags we're now specifying. It's going to take a while to figure out which options are causing the problems and find a way to deal with it.

I've worked around it for now by adding support for "legacy" legacy -- replicating the settings we used when cross-compiling for ACC.

In the meantime, this module is a significant improvement over the existing code.

@ffoulkes
Copy link
Contributor Author

I don't have access to a system that allows me to verify that the code cross-compiles for ACC. I'm working on solving that problem, but it might be quicker if someone else can test it for me.

I have no intention of merging this PR until we've verified that it does not break the ACC build.

Copy link
Collaborator

@5abeel 5abeel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Collaborator

@nupuruttarwar nupuruttarwar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ffoulkes ffoulkes added the cmake Affects CMake build system label Oct 5, 2023
- Functions to set C and C++ compiler flags according to the
  Intel Secure Coding Standards. (squashed) (rebased)

Signed-off-by: Derek G Foster <[email protected]>
Signed-off-by: Derek G Foster <[email protected]>
@ffoulkes ffoulkes merged commit 366f328 into main Oct 8, 2023
4 checks passed
@ffoulkes ffoulkes deleted the compiler-flags branch October 8, 2023 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cmake Affects CMake build system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants