historical/m0-applesillicon.git/xnu-qemu-arm64-5.1.0/roms/skiboot/external/common/get_arch.sh
2024-01-16 11:20:27 -06:00

11 lines
220 B
Bash

#!/bin/sh
echo "#if defined(__powerpc__)
echo -n ARCH_POWERPC
#elif defined(__x86_64__) || defined(__i386__)
echo -n ARCH_X86
#elif defined(__arm__)
echo -n ARCH_ARM
#else
echo -n ARCH_UNKNOWN
#endif" | $1cpp | /bin/sh