facebook / watchman

Watches files and records, or triggers actions, when they change.
https://facebook.github.io/watchman/
MIT License
12.64k stars 992 forks source link

Compile release for arm64v8 #975

Open emhagman opened 2 years ago

emhagman commented 2 years ago

It would be nice to have the releases compiled for arm64v8 as well. We use watchman inside of Docker for django and on the new Macbook M1s our developers use arm64v8 Debian images with Docker. Debian compiles these for arm64v8 but the latest version is 4.9.0 which is fairly old.

We can always compile it ourselves but that isn't ideal.

emhagman commented 2 years ago

For now, I've built my own arm64v8 version but that results in a binary that is more than 300MB for watchman. watchmanctl is only around 7MB. Am I missing a flag or environment variable when I am building this using ./autogen.sh?

fanzeyi commented 2 years ago

You probably want to run strip to remove the debug symbols. I think they are on by default

emhagman commented 2 years ago

You probably want to run strip to remove the debug symbols. I think they are on by default

Thank you, that did the trick! Appreciate it.

Andy9822 commented 2 years ago

Hey @emhagman, I just found out about this issue of yours and your comments. So, is the watchman v4.9.0 compiled for arm64 (new Apple Silicon M1s) ?

I didn't get it from your comment and since I'll be switching to it soon, and we use watchman in our docker image, I'd like to better understand it.