Skip to content

add macos strip state checking #36

@dothebart

Description

@dothebart

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_file using 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions