autotools
mkdir build && cd build
../configure CFLAGS='-arch arm64 -arch x86_64' CXXFLAGS='-arch arm64 -arch x86_64' LDFLAGS="-arch arm64 -arch x86_64" --prefix /Users/khan/Downloads/testdisk-7.2-WIP_src/build/dist
cmake
mkdir build && cd build
cmake -DCMAKE_OSX_ARCHITECTURES='armv7;arm64;x86_64' ..
qmake
# 设置变量
QMAKE_APPLE_DEVICE_ARCHS = x86_64 arm64