summaryrefslogtreecommitdiffstats
path: root/bootstrap
diff options
context:
space:
mode:
authorRené Bertin <rjvbertin@gmail.com>2024-05-04 17:59:27 (GMT)
committerBrad King <brad.king@kitware.com>2024-06-04 12:37:47 (GMT)
commit598bc704741ccb21c8c382ae4809e5fbfbdc2715 (patch)
tree1c85e9de716b4f33b48b3fecbc517a0b328afeb6 /bootstrap
parent1df18d5e54023af6d7802a7219d2d4ef6e88bdb2 (diff)
downloadCMake-598bc704741ccb21c8c382ae4809e5fbfbdc2715.zip
CMake-598bc704741ccb21c8c382ae4809e5fbfbdc2715.tar.gz
CMake-598bc704741ccb21c8c382ae4809e5fbfbdc2715.tar.bz2
file: Add undocumented READ_MACHO subcommand on macOS
Provide a way to parse the architectures of a Mach-O binary. Issue: #25952
Diffstat (limited to 'bootstrap')
-rwxr-xr-xbootstrap11
1 files changed, 11 insertions, 0 deletions
diff --git a/bootstrap b/bootstrap
index 9958a6d..49b91d5 100755
--- a/bootstrap
+++ b/bootstrap
@@ -353,6 +353,7 @@ CMAKE_CXX_SOURCES="\
cmExprParserHelper \
cmExternalMakefileProjectGenerator \
cmFileCommand \
+ cmFileCommand_ReadMacho \
cmFileCopier \
cmFileInstaller \
cmFileSet \
@@ -521,6 +522,12 @@ CMAKE_CXX_SOURCES="\
cm_fileno \
"
+if ${cmake_system_darwin}; then
+ CMAKE_CXX_SOURCES="${CMAKE_CXX_SOURCES}\
+ cmMachO \
+ "
+fi
+
if ${cmake_system_mingw}; then
CMAKE_CXX_SOURCES="${CMAKE_CXX_SOURCES}\
cmGlobalMSYSMakefileGenerator \
@@ -1669,6 +1676,10 @@ else
cmake_report cmConfigure.h${_tmp} "#define CMAKE_BOOTSTRAP_MAKEFILES"
fi
+if ${cmake_system_darwin}; then
+ cmake_report cmConfigure.h${_tmp} "#define CMake_USE_MACH_PARSER"
+fi
+
if ${cmake_system_mingw}; then
cmake_report cmConfigure.h${_tmp} "#if defined(_WIN32) && !defined(NOMINMAX)"
cmake_report cmConfigure.h${_tmp} "# define NOMINMAX"