[llvm] [CAS] Add missing <sys/time.h> include to fix aarch64 build (PR #196193)
Justin Fargnoli via llvm-commits
llvm-commits at lists.llvm.org
Wed May 6 20:05:44 PDT 2026
================
@@ -87,6 +87,9 @@
#include "llvm/Support/Program.h"
#include "llvm/Support/raw_ostream.h"
#include <optional>
+#ifndef _WIN32
+#include <sys/time.h>
+#endif
----------------
justinfargnoli wrote:
> On aarch64 Linux, building llvm/lib/CAS/UnifiedOnDiskCache.cpp fails because a symbol from <sys/time.h> is used transitively but the header is not directly included
I'm concerned that this may not be the right approach here. Typically, OS specific headers are wrapped by `libSupport`. Is there a specific file in `Support` that we could include to resolve this missing dependency?
https://github.com/llvm/llvm-project/pull/196193
More information about the llvm-commits
mailing list