From 219ba6152cc033b5da99566537664d842b3faee9 Mon Sep 17 00:00:00 2001
From: Jonathan Swoboda <154711427+swoboda1337@users.noreply.github.com>
Date: Thu, 3 Apr 2025 03:32:17 -0400
Subject: [PATCH] [CI] Clang tidy fixes for 5.3.2 (#8510)

Co-authored-by: Keith Burzinski <kbx81x@gmail.com>
---
 script/clang-tidy | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/script/clang-tidy b/script/clang-tidy
index 51705f955b..a857274b01 100755
--- a/script/clang-tidy
+++ b/script/clang-tidy
@@ -36,6 +36,7 @@ def clang_options(idedata):
         # clang doesn't support Xtensa (yet?), so compile in 32-bit mode and pretend we're the Xtensa compiler
         cmd.append("-m32")
         cmd.append("-D__XTENSA__")
+        cmd.append("-D_LIBC")
     else:
         cmd.append(f"--target={triplet}")
 
@@ -79,6 +80,7 @@ def clang_options(idedata):
             "-fstrict-volatile-bitfields",
             "-mlongcalls",
             "-mtext-section-literals",
+            "-mdisable-hardware-atomics",
             "-mfix-esp32-psram-cache-issue",
             "-mfix-esp32-psram-cache-strategy=memw",
             "-fno-tree-switch-conversion",