blob: 18a5cef25bdc609724b9d24456fdd66062ca1222 [file] [log] [blame]
Norman James6a58a272015-10-07 14:34:16 -05001#!/bin/sh
2echo "#if defined(__powerpc__)
3echo -n ARCH_POWERPC
4#elif defined(__x86_64__) || defined(__i386__)
5echo -n ARCH_X86
6#elif defined(__arm__)
7echo -n ARCH_ARM
8#else
9echo -n ARCH_UNKNOWN
10#endif" | $1cpp | sh
11