diff --git a/llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp b/llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp --- a/llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp +++ b/llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp @@ -39,7 +39,7 @@ #include #ifdef __GLIBC__ -#if __GLIBC_MINOR__ >= 35 +#if __GLIBC_MINOR__ >= 35 && !defined(__loongarch__) #define GLIBC_INITS_RSEQ #endif // __GLIBC__MINOR > 35 #endif // __GLIBC__