cmake: support verbose build that shows compiler commands
authorFelix Fietkau <nbd@nbd.name>
Thu, 12 Jan 2017 13:32:02 +0000 (14:32 +0100)
committerFelix Fietkau <nbd@nbd.name>
Fri, 13 Jan 2017 09:23:43 +0000 (10:23 +0100)
Signed-off-by: Felix Fietkau <nbd@nbd.name>
tools/cmake/Makefile

index c56cd40..08e5a69 100644 (file)
@@ -29,4 +29,8 @@ HOST_CONFIGURE_VARS :=
 HOST_CONFIGURE_ARGS := \
        --prefix=$(STAGING_DIR_HOST)
 
+ifneq ($(findstring c,$(OPENWRT_VERBOSE)),)
+  HOST_MAKE_FLAGS += VERBOSE=1
+endif
+
 $(eval $(call HostBuild))