Skip to content

Do not build a goto-instrument.a #2875

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

Merged
merged 1 commit into from
Sep 3, 2018

Conversation

tautschnig
Copy link
Collaborator

The library archive in goto-instrument included several other archives, which
caused spurious failures ("file format not recognized") when trying to link unit
tests.

@kroening
Copy link
Member

Is that library even used? As of now it includes goto_instrument_main.cpp, which would make it hard to use it in any executable.
If it is used, there should probably be a LIBRARY_OBJ or the like, which would then not include goto_instrument_main.

@tautschnig
Copy link
Collaborator Author

Is that library even used?

The unit tests use it, maybe that's what should be questioned and changed. Happy to go down that route instead.

The library archive in goto-instrument included several other archives as well
as a file providing "main", which caused spurious failures ("file format not
recognized") when trying to link unit tests.
@tautschnig tautschnig changed the title Do not include libraries in goto-instrument.a Do not build a goto-instrument.a Sep 3, 2018
@tautschnig
Copy link
Collaborator Author

I have reworked this to completely remove the goto-instrument.a unicorn.

Copy link
Member

@peterschrammel peterschrammel left a comment

Choose a reason for hiding this comment

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

Fine with this.
Just to mention that the cmake build handles that correctly by building a goto-instrument lib without goto_instrument_main and then builds the executable linking with the lib.

@tautschnig
Copy link
Collaborator Author

Just to mention that the cmake build handles that correctly by building a goto-instrument lib without goto_instrument_main and then builds the executable linking with the lib.

Yes - and doing so in the Makefile builds would possibly be cleaner, but then we should do it in all folders (as CMake does).

@tautschnig tautschnig merged commit 2c451e9 into diffblue:develop Sep 3, 2018
@tautschnig tautschnig deleted the no-recursive-lib branch September 3, 2018 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants