Debian Codegraph @

tools/testing/selftests/fchmodat2/Makefile

raw
1 # SPDX-License-Identifier: GPL-2.0-or-later
2
3 CFLAGS += -Wall -O2 -g -fsanitize=address -fsanitize=undefined $(KHDR_INCLUDES)
4
5 # gcc requires -static-libasan in order to ensure that Address Sanitizer's
6 # library is the first one loaded. However, clang already statically links the
7 # Address Sanitizer if -fsanitize is specified. Therefore, simply omit
8 # -static-libasan for clang builds.
9 ifeq ($(LLVM),)
10 CFLAGS += -static-libasan
11 endif
12
13 TEST_GEN_PROGS := fchmodat2_test
14
15 include ../lib.mk