Re: [PATCH] Makefile: detect compiler and enable more warnings in DEVELOPER=1
- From
Duy Nguyen <pclouds@gmail.com>
- Date
- Mar 18, 2018, 15:55 UTC
- Message-ID
- <CACsJy8BOCpHiMxJ0K=_-WPf9b4yh0W0i3m9sAo5-Sk5fY9x1+A@mail.gmail.com>
- In-Reply-To
- <20180318081834.16081-1-pclouds@gmail.com>
On Sun, Mar 18, 2018 at 9:18 AM, Nguyễn Thái Ngọc Duy <pclouds@gmail.com> wrote:
> +ifneq ($(or $(filter gcc6,$(COMPILER_FEATURES)),$(filter clang4,$(COMPILER_FEATURES))),) > +CFLAGS += -Wextra
Another thing we can add here is -Og instead of standard -O2 (or -O0 in my build), which is supported since gcc 4.8. clang seems to support it too (mapped to -O1 at least for clang5) but I don't know what version added that flag.
-- Duy