| 8233 | |
| 8234 | #ifdef CBM_CLI_ENABLE_TEST_API |
| 8235 | static const char *detect_os(void) { |
| 8236 | #ifdef _WIN32 |
| 8237 | return "windows"; |
| 8238 | #elif defined(__APPLE__) |
| 8239 | return "darwin"; |
| 8240 | #else |
| 8241 | return "linux"; |
| 8242 | #endif |
| 8243 | } |
| 8244 | |
| 8245 | static const char *detect_arch(void) { |
| 8246 | #if defined(__aarch64__) || defined(_M_ARM64) |