-
Notifications
You must be signed in to change notification settings - Fork 274
Use run instead of popen to run ar [blocks: #3867] #3702
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
Conversation
1e0760a
to
e3c6559
Compare
f93cac6
to
3a38678
Compare
regression/goto-gcc/CMakeLists.txt
Outdated
add_custom_command(OUTPUT "${CMAKE_CURRENT_SOURCE_DIR}/archives/libour_archive.a" | ||
COMMAND "$<TARGET_FILE_DIR:goto-cc>/goto-gcc" -c foo.c | ||
COMMAND ${CMAKE_AR} rcs libour_archive.a foo.o | ||
DEPENDS "$<TARGET_FILE_DIR:goto-cc>/goto-gcc" |
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.
Also depends on foo.c
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.
Ah, thanks, added.
(the rest of this is hard for me to review in a timely fashion without reading up a bunch on OSX object formats and such) |
eb8ba8b
to
5061aca
Compare
Loading files from archives requires the use of ar; invoke it via run instead of popen to eliminate OS-specific code from the goto-cc folder.
e8ade2c
to
1b947fe
Compare
This PR is now restricted to what it said in the subject. Mach-O binary support, which is needed to properly test it in CI, will be done in a separate PR. |
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.
✔️
Passed Diffblue compatibility checks (cbmc commit: 1b947fe).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/98025595
Loading files from archives requires the use of ar; invoke it via run instead of
popen to eliminate OS-specific code from the goto-cc folder.