-
Notifications
You must be signed in to change notification settings - Fork 274
Make CMake generation of cprover_library.inc match with Makefile #5234
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
Make CMake generation of cprover_library.inc match with Makefile #5234
Conversation
COMMAND converter < ${converter_input_path} > "${CMAKE_CURRENT_BINARY_DIR}/cprover_library.inc" | ||
DEPENDS converter ${converter_input_path} | ||
) | ||
COMMAND cat ${ansi_c_library_sources} | $<TARGET_FILE:converter> > "${CMAKE_CURRENT_BINARY_DIR}/cprover_library.inc" |
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.
Any particular reason for using cat here, rather than just stdin redirection from the file?
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.
@chrisr-diffblue Because it’s a list of files, not just one.
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.
Doh, of course.... :-)
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.
Good catch, thanks. One minor query, but nothing particularly blocking.
ecab714
to
0c29c8d
Compare
Before it appended the converter input at configure time, meaning if you changed any of the model *.c files it’d actually not notice the change unless you ran CMake again. This version will pick up such changes, and also matches what we have in the current Makefile.
0c29c8d
to
711b52e
Compare
Codecov Report
@@ Coverage Diff @@
## develop #5234 +/- ##
===========================================
- Coverage 67.42% 31.9% -35.52%
===========================================
Files 1162 910 -252
Lines 95606 79415 -16191
===========================================
- Hits 64459 25336 -39123
- Misses 31147 54079 +22932
Continue to review full report at Codecov.
|
Before it appended the converter input at configure time, meaning if you changed
any of the model *.c files it’d actually not notice the change unless you ran
CMake again. This version will pick up such changes, and also matches what we
have in the current Makefile.