By specifying the existing clang toolchain file on the M1 mac machine to build the WiredTiger, it fails during the configuration with the following error:
CMake Error at /Users/haribabukommi/work/code/wiredtiger/cmake/toolchains/clang.cmake:34 (message): (aarch64/darwin) directory does not have a plat_clang.cmake file Call Stack (most recent call first): /Users/haribabukommi/work/code/wiredtiger/build/CMakeFiles/3.27.6/CMakeSystem.cmake:6 (include) /Users/haribabukommi/work/code/wiredtiger/build/CMakeFiles/CMakeScratch/TryCompile-yrwldL/CMakeLists.txt:4 (project) CMake Error at /opt/homebrew/Cellar/cmake/3.27.6/share/cmake/Modules/CheckIncludeFiles.cmake:132 (try_compile): Failed to configure test project build system. Call Stack (most recent call first): cmake/helpers.cmake:350 (check_include_files) cmake/configs/auto.cmake:43 (config_include) CMakeLists.txt:47 (include)
The cmake build command:
cmake -DCMAKE_TOOLCHAIN_FILE=../cmake/toolchains/clang.cmake -G "Ninja" ./..