configure.sh: Add --enable-bear for autotools builds.

With --enable-bear all autotools projects will be built via bear so
compile_commands.json are generated.
This commit is contained in:
Arkadiusz Hiler 2023-09-04 16:12:40 +03:00
parent 9f42631228
commit a60519fcd8
4 changed files with 20 additions and 6 deletions

View file

@ -62,6 +62,12 @@ ifneq ($(SUPPRESS_WARNINGS),)
COMMON_FLAGS += -w
endif
ifeq ($(ENABLE_BEAR),1)
BEAR := bear --append --
else
BEAR :=
endif
$(DST_DIR):
mkdir -p $@
@ -1204,10 +1210,10 @@ redist: all
.PHONY: module32 module64 module
module32: | all-source wine-configure32
+$(MAKE) -j$(J) $(filter -j%,$(MAKEFLAGS)) $(MFLAGS) $(MAKEOVERRIDES) -C $(WINE_OBJ32)/dlls/$(module)
+$(BEAR) $(MAKE) -j$(J) $(filter -j%,$(MAKEFLAGS)) $(MFLAGS) $(MAKEOVERRIDES) -C $(WINE_OBJ32)/dlls/$(module)
module64: | all-source wine-configure64
+$(MAKE) -j$(J) $(filter -j%,$(MAKEFLAGS)) $(MFLAGS) $(MAKEOVERRIDES) -C $(WINE_OBJ64)/dlls/$(module)
+$(BEAR) $(MAKE) -j$(J) $(filter -j%,$(MAKEFLAGS)) $(MFLAGS) $(MAKEOVERRIDES) -C $(WINE_OBJ64)/dlls/$(module)
module: | all-source wine-configure
module: module32 module64