-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
detecting whether binaries on mac are stripped is a PITA. The cheapest way of doing so is:
- create a copy of the file in
/tmp/test_this_fileusing the python pathlib - invoke strip on
/tmp/test_this_file - compare the filesize of the original file and this file. If they match, source was stripped - if not - not.
- delete temporary file.
Part of this: research howto invoke strip, try on the shell in advance. Maybe stripped files change in size anyways? The build-folder on the CI should have a makefile invoking strip, hence this can be used for getting the syntax.
After revalidating that this approach is viable with a go binary (i.e. starter => not stripped) and and a c++ binary (arangod => stripped) on the interactive shell,
The implementation of this can be done on linux, since strip is also available there too.
Metadata
Metadata
Assignees
Labels
No labels