Skip to content

Commit 21a006f

Browse files
committed
build compile_commands.json on make all
1 parent ca3bc7e commit 21a006f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/runtime/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ LIB_OBJS_DEBUG = $(filter-out source/main_debug.o, $(OBJS_DEBUG))
3232
%_debug.o: %.c
3333
$(CC) $(CCFLAGS) $(DEBUGFLAGS) $(INC) -o $@ $<
3434

35-
all: $(OUT_FILE_NAME) source/main.o
35+
all: $(OUT_FILE_NAME) source/main.o compile_commands.json
3636

3737
debug: $(OUT_FILE_NAME_DEBUG) source/main_debug.o
3838

lib/stdlib/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ OBJS_DEBUG = $(OBJS:.o=_debug.o)
3434
%_debug.o: %.c
3535
$(CC) $(CCFLAGS) $(DEBUGFLAGS) $(INC) -o $@ $<
3636

37-
all: $(OUT_FILE_NAME)
37+
all: $(OUT_FILE_NAME) compile_commands.json
3838

3939
debug: $(OUT_FILE_NAME_DEBUG)
4040

0 commit comments

Comments
 (0)