From 799e24a87bf2e676786a0294783a71a8a24fe644 Mon Sep 17 00:00:00 2001 From: Justine Tunney Date: Thu, 18 Jun 2020 23:04:41 -0700 Subject: [PATCH] Reduce build log verbosity with preprocessor trick --- build/definitions.mk | 3 +-- libc/integral/c.inc | 10 +++++----- third_party/third_party.mk | 1 - 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/build/definitions.mk b/build/definitions.mk index 251b1582..7d01c175 100644 --- a/build/definitions.mk +++ b/build/definitions.mk @@ -204,8 +204,7 @@ cc.flags = \ $(DEFAULT_CCFLAGS) \ $(CONFIG_CCFLAGS) \ $(CCFLAGS) \ - $(OVERRIDE_CCFLAGS) \ - -D__SAUCE__=\"$<\" + $(OVERRIDE_CCFLAGS) o.flags = \ $(DEFAULT_OFLAGS) \ diff --git a/libc/integral/c.inc b/libc/integral/c.inc index 089630e3..284b9758 100644 --- a/libc/integral/c.inc +++ b/libc/integral/c.inc @@ -1014,12 +1014,12 @@ typedef uint64_t uintmax_t; #endif /** - * Pulls source code of object being compiled. - * @note automates better compliance with spirit of gpl terms - * @note headers need to call STATIC_YOINK_SOURCE() manually + * Pulls source of object being compiled into zip. + * @note automates compliance with gpl terms + * @see -DIM_FEELING_NAUGHTY */ -#ifdef __SAUCE__ -STATIC_YOINK_SOURCE(__SAUCE__); /* see build/definitions.mk */ +#ifdef __BASE_FILE__ +STATIC_YOINK_SOURCE(__BASE_FILE__); #endif #ifndef __cplusplus diff --git a/third_party/third_party.mk b/third_party/third_party.mk index 3404e3d8..eeeb3fe6 100644 --- a/third_party/third_party.mk +++ b/third_party/third_party.mk @@ -16,7 +16,6 @@ o/$(MODE)/third_party: \ o/$(MODE)/third_party/lex \ o/$(MODE)/third_party/linenoise \ o/$(MODE)/third_party/lz4cli \ - o/$(MODE)/third_party/make \ o/$(MODE)/third_party/m4 \ o/$(MODE)/third_party/musl \ o/$(MODE)/third_party/regex \