| 7048 | |
| 7049 | #ifdef CBM_CLI_ENABLE_TEST_API |
| 7050 | static const char *detect_os(void) { |
| 7051 | #ifdef _WIN32 |
| 7052 | return "windows"; |
| 7053 | #elif defined(__APPLE__) |
| 7054 | return "darwin"; |
| 7055 | #else |
| 7056 | return "linux"; |
| 7057 | #endif |
| 7058 | } |
| 7059 | |
| 7060 | static const char *detect_arch(void) { |
| 7061 | #if defined(__aarch64__) || defined(_M_ARM64) |