-
Notifications
You must be signed in to change notification settings - Fork 288
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
version: use generated version_def.h #469
Conversation
Using command line to define the OPENAMP_VERSION string macro breaks Cygwin build on some releases of Microsoft Windows and CMake. Remove all OPENAMP_VERSION macros from cmake compiler flags and use the ones from the generated version_def.h file. Signed-off-by: Sergei Korneichuk <sergei.korneichuk@amd.com>
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.
looks good to me.
Please Could you please provide more details on the issue ? I would like to understand the problem you are facing. |
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.
This change looks reasonable, but I'd like to see more detail about that goes wrong with Cygwin in the commit message.
The error
happens during open-amp build in Vitis on MS-Windows under Cygwin. The top-level make is started via
where each compiler option is enclosed in double quotes. This collides with the quotes from Line 19 in 246540f
config.h , but it generates version_def.h from VERSION. This way we avoid the build system shell dependencies and rely only on the CMake and the preprocessor.
|
Thanks for the explanation, it's much clearer now. That said, I can not find any reason to keep definitions in cmake, so your proposal seems to me ok |
@edmooring can you give a feedback on this one as it is a candidate for the release? |
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.
Looks good to me.
Using command line to define the OPENAMP_VERSION string macro breaks Cygwin build on some releases of Microsoft Windows and CMake. Remove all OPENAMP_VERSION macros from cmake compiler flags and use the ones from the generated version_def.h file.