mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-29 21:38:16 +00:00
build: Debug system feature tests.
`make` without `-s` option will normally show the commands executed. In the case of detecting build environment features current makefile will cause detected features to be seen as 'echo #define' commands, but not detected ones will be silent. Change it so that all tried features can be seen (outside of make's silent mode) regardless of detection result. Signed-off-by: Michał Mirosław <emmir@google.com>
This commit is contained in:
parent
aa6b633912
commit
2d76e4b31a
@ -85,7 +85,8 @@ FEATURES_LIST := TCP_REPAIR STRLCPY STRLCAT PTRACE_PEEKSIGINFO \
|
||||
define gen-feature-test
|
||||
ifeq ($$(call try-cc,$$(FEATURE_TEST_$(1)),$$(LIBS_FEATURES),$$(DEFINES)),true)
|
||||
$(Q) echo '#define CONFIG_HAS_$(1)' >> $$@
|
||||
$(Q) echo '' >> $$@
|
||||
else
|
||||
$(Q) echo '// CONFIG_HAS_$(1) is not set' >> $$@
|
||||
endif
|
||||
endef
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user