rschupp / PAR-Packer

(perl) Generate stand-alone executables, perl scripts and PAR files https://metacpan.org/pod/PAR::Packer
Other
50 stars 13 forks source link

Better CLT detection in MacOS #70

Closed plk closed 1 year ago

plk commented 1 year ago

We put in detection of the presence of /usr/bin/lipo from the Command Line Tools (CLT) for MacOS to make sure we could split universal binaries before unpacking. This works fine when CLT are installed but apparently, many tools exist on the file system as stubs before CLT is installed and so the simple existence test for /usr/bin/lipo succeeds when CLT are not installed. This patch instead detects the CLT install status and gives a more useful error message about how to install when not present.