file: Add undocumented READ_MACHO subcommand on macOS

Provide a way to parse the architectures of a Mach-O binary.

Issue: #25952
This commit is contained in:
René Bertin
2024-05-04 19:59:27 +02:00
committed by Brad King
parent 1df18d5e54
commit 598bc70474
7 changed files with 198 additions and 4 deletions
+2
View File
@@ -35,6 +35,7 @@
#include "cmELF.h"
#include "cmExecutionStatus.h"
#include "cmFSPermissions.h"
#include "cmFileCommand_ReadMacho.h"
#include "cmFileCopier.h"
#include "cmFileInstaller.h"
#include "cmFileLockPool.h"
@@ -3965,6 +3966,7 @@ bool cmFileCommand(std::vector<std::string> const& args,
{ "RPATH_CHECK"_s, HandleRPathCheckCommand },
{ "RPATH_REMOVE"_s, HandleRPathRemoveCommand },
{ "READ_ELF"_s, HandleReadElfCommand },
{ "READ_MACHO"_s, HandleReadMachoCommand },
{ "REAL_PATH"_s, HandleRealPathCommand },
{ "RELATIVE_PATH"_s, HandleRelativePathCommand },
{ "TO_CMAKE_PATH"_s, HandleCMakePathCommand },