-
Notifications
You must be signed in to change notification settings - Fork 203
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
Add flag at prep stage to OMIT_DEPRECATED #355
Comments
Imported from trac issue 324. Created by jhageman on 2019-08-23T17:07:17, last modified: 2019-08-23T17:07:17 |
@jphickey do you have a suggestion for this one? I quickly jammed in:
to the prepare function of mission_build.cmake so I could move forward with CI improvements locally. Didn't cache but easy enough to add. |
I recommend just setting OSAL_USER_C_FLAGS when doing the initial prep, which allows one to add your own flags. i.e. Shouldn't need to edit files. This is how I generally test it out. This is also cached so it is retained as part of the build tree. |
I am really not a fan of doing it that way. OSAL_USER_C_FLAGS is not consistently applied everywhere, I think I've either emailed you or commented somewhere about previous issues with this technique. I'd much rather from a top level add these definitions explicitly, and not require the user or CI to know what the actual define values are. |
See #24 for some other issues with OSAL_USER_CFLAGS. Not a fan of |
Yes, the top-level wrapper makefile is another place that we could put logic like this. However it was never required that projects use this wrapper, it is just a convenient way to build with a single "make" and not be concerned with the specific CMake invocation to generate your makefiles. That being said, we probably do need to have some sort of document (or at least a paragraph in the README) that indicates the name and meaning of the various configure-time options in the build system for that version of code. |
CCB 20191106 - discussed as high priority so simple CI improvements can move forward (matrix jobs to build both with and without deprecated elements) without hard coding defines in yml scripts |
Adds STRICT_NO_WARNINGS and OMIT_DEPRECATED prep options for CI and as example build
Adds STRICT_NO_WARNINGS and OMIT_DEPRECATED prep options for CI and as example build
Adds a "global_build_options.cmake" file akin to the existing arch_build/mission_build option files. Include an example of this file that optionally does add_definitions() to omit the deprected elements for build testing.
Fix #355, Add global scope option to omit deprecated items
Need an easy way for users (and the CI system) to omit all deprecated elements. Something like
make OMIT_DEPRECATED=true prep
which would then internally add all the -DCFE_OMIT_DEPRECATED -DOSAL_OMIT_DEPRECATED and so on flags when building everything.
The text was updated successfully, but these errors were encountered: