c_formatter_42 icon indicating copy to clipboard operation
c_formatter_42 copied to clipboard

clang-format-darwin: Bad CPU type in executable on Mac with Apple Silicon

Open storba opened this issue 1 year ago • 1 comments

Steps to reproduce:

  • Install https://docs.astral.sh/uv/getting-started/installation/
  • Run uvx c_formatter_42 *.c and get:
~/.cache/uv/archive-v0/DZAU-mByX00hK9AUN1lX_/lib/python3.9/site-packages/c_formatter_42/data/clang-format-darwin: 
Bad CPU type in executable

File info and system arch:

% file ~/.cache/uv/archive-v0/DZAU-mByX00hK9AUN1lX_/lib/python3.9/site-packages/c_formatter_42/data/clang-format-darwin
~/.cache/uv/archive-v0/DZAU-mByX00hK9AUN1lX_/lib/python3.9/site-packages/c_formatter_42/data/clang-format-darwin: Mach-O 64-bit executable x86_64
% arch 
arm64

Is it possible to build and publish C formatter 42 with a binary for ARM64 macs?

storba avatar Dec 06 '24 10:12 storba

I updated the package on pypi (version 0.2.8) You can upgrade and close this if it's resolved

cacharle avatar Dec 07 '24 08:12 cacharle

Is this resolved?

cacharle avatar May 08 '25 10:05 cacharle

Thanks a lot @cacharle It works 🎉

storba avatar May 23 '25 07:05 storba