Makefile.lib (42ac0be18bfa09c03f52244f7c3e15c89b38532f) | Makefile.lib (918327e9b7ffb45321cbb4b9b86b58ec555fe6b3) |
---|---|
1# SPDX-License-Identifier: GPL-2.0 2# Backward compatibility 3asflags-y += $(EXTRA_AFLAGS) 4ccflags-y += $(EXTRA_CFLAGS) 5cppflags-y += $(EXTRA_CPPFLAGS) 6ldflags-y += $(EXTRA_LDFLAGS) 7 8# flags that take effect in current and sub directories --- 161 unchanged lines hidden (view full) --- 170 $(CFLAGS_KMSAN)) 171_c_flags += $(if $(patsubst n%,, \ 172 $(KMSAN_ENABLE_CHECKS_$(basetarget).o)$(KMSAN_ENABLE_CHECKS)y), \ 173 , -mllvm -msan-disable-checks=1) 174endif 175 176ifeq ($(CONFIG_UBSAN),y) 177_c_flags += $(if $(patsubst n%,, \ | 1# SPDX-License-Identifier: GPL-2.0 2# Backward compatibility 3asflags-y += $(EXTRA_AFLAGS) 4ccflags-y += $(EXTRA_CFLAGS) 5cppflags-y += $(EXTRA_CPPFLAGS) 6ldflags-y += $(EXTRA_LDFLAGS) 7 8# flags that take effect in current and sub directories --- 161 unchanged lines hidden (view full) --- 170 $(CFLAGS_KMSAN)) 171_c_flags += $(if $(patsubst n%,, \ 172 $(KMSAN_ENABLE_CHECKS_$(basetarget).o)$(KMSAN_ENABLE_CHECKS)y), \ 173 , -mllvm -msan-disable-checks=1) 174endif 175 176ifeq ($(CONFIG_UBSAN),y) 177_c_flags += $(if $(patsubst n%,, \ |
178 $(UBSAN_SANITIZE_$(basetarget).o)$(UBSAN_SANITIZE)$(CONFIG_UBSAN_SANITIZE_ALL)), \ | 178 $(UBSAN_SANITIZE_$(basetarget).o)$(UBSAN_SANITIZE)y), \ |
179 $(CFLAGS_UBSAN)) 180endif 181 182ifeq ($(CONFIG_KCOV),y) 183_c_flags += $(if $(patsubst n%,, \ 184 $(KCOV_INSTRUMENT_$(basetarget).o)$(KCOV_INSTRUMENT)$(CONFIG_KCOV_INSTRUMENT_ALL)), \ 185 $(CFLAGS_KCOV)) 186endif --- 393 unchanged lines hidden --- | 179 $(CFLAGS_UBSAN)) 180endif 181 182ifeq ($(CONFIG_KCOV),y) 183_c_flags += $(if $(patsubst n%,, \ 184 $(KCOV_INSTRUMENT_$(basetarget).o)$(KCOV_INSTRUMENT)$(CONFIG_KCOV_INSTRUMENT_ALL)), \ 185 $(CFLAGS_KCOV)) 186endif --- 393 unchanged lines hidden --- |