aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/scripts/Makefile.kcsan
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/Makefile.kcsan')
-rw-r--r--scripts/Makefile.kcsan6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/Makefile.kcsan b/scripts/Makefile.kcsan
new file mode 100644
index 000000000000..caf1111a28ae
--- /dev/null
+++ b/scripts/Makefile.kcsan
@@ -0,0 +1,6 @@
+# SPDX-License-Identifier: GPL-2.0
+ifdef CONFIG_KCSAN
+
+CFLAGS_KCSAN := -fsanitize=thread
+
+endif # CONFIG_KCSAN