kou commented on PR #33803:
URL: https://github.com/apache/arrow/pull/33803#issuecomment-1399152264

   How about this?
   
   ```diff
   diff --git a/cpp/src/arrow/util/cpu_info.cc b/cpp/src/arrow/util/cpu_info.cc
   index 3ba8db216..08b7b8b21 100644
   --- a/cpp/src/arrow/util/cpu_info.cc
   +++ b/cpp/src/arrow/util/cpu_info.cc
   @@ -348,6 +348,7 @@ int64_t LinuxGetCacheSize(int level) {
    // care about are present.
    // Returns a bitmap of flags.
    int64_t LinuxParseCpuFlags(const std::string& values) {
   +#if defined(CPUINFO_ARCH_X86) || defined(CPUINFO_ARCH_ARM)
      const struct {
        std::string name;
        int64_t flag;
   @@ -379,6 +380,9 @@ int64_t LinuxParseCpuFlags(const std::string& values) {
        }
      }
      return flags;
   +#else
   +  return 0;
   +#endif
    }
    
    void OsRetrieveCacheSize(std::array<int64_t, kCacheLevels>* cache_sizes) {
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to