Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 2f7d77c in mainline for kernel/Makefile


Ignore:
Timestamp:
2018-06-14T19:02:26Z (3 years ago)
Author:
Jiří Zárevúcky <jiri.zarevucky@…>
Branches:
master
Children:
587478b
Parents:
abf8bd8
git-author:
Jiří Zárevúcky <jiri.zarevucky@…> (2018-06-14 17:48:39)
git-committer:
Jiří Zárevúcky <jiri.zarevucky@…> (2018-06-14 19:02:26)
Message:

Add rudimentary support for undefined behavior sanitizer.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/Makefile

    rabf8bd8 r2f7d77c  
    106106ifeq ($(CONFIG_DEBUG),y)
    107107        COMMON_CFLAGS += -Werror
     108endif
     109
     110ifeq ($(CONFIG_UBSAN_KERNEL),y)
     111        COMMON_CFLAGS += -fsanitize=undefined
    108112endif
    109113
     
    209213        generic/src/lib/ra.c \
    210214        generic/src/lib/rd.c \
     215        generic/src/lib/ubsan.c \
    211216        generic/src/printf/printf_core.c \
    212217        generic/src/printf/printf.c \
Note: See TracChangeset for help on using the changeset viewer.