| 71 | const BuildInfo& GetBuildInfo() { return kBuildInfo; } |
| 72 | |
| 73 | RuntimeInfo GetRuntimeInfo() { |
| 74 | RuntimeInfo info; |
| 75 | auto cpu_info = CpuInfo::GetInstance(); |
| 76 | info.simd_level = |
| 77 | MakeSimdLevelString([&](int64_t flags) { return cpu_info->IsSupported(flags); }); |
| 78 | info.detected_simd_level = |
| 79 | MakeSimdLevelString([&](int64_t flags) { return cpu_info->IsDetected(flags); }); |
| 80 | info.using_os_timezone_db = USE_OS_TZDB; |
| 81 | #if !USE_OS_TZDB |
| 82 | info.timezone_db_path = timezone_db_path; |
| 83 | #else |
| 84 | info.timezone_db_path = std::optional<std::string>(); |
| 85 | #endif |
| 86 | return info; |
| 87 | } |
| 88 | |
| 89 | // TODO(GH-48593): Remove when libc++ supports std::chrono timezone |
| 90 | // https://github.com/apache/arrow/issues/48593 |
no test coverage detected