Skip to content

Commit c4d38c4

Browse files
committed
Fix parallel build race and portable mkdir in tests
1. cbm-with-ui target: add $(OBJS_VENDORED_PROD) as dependency so grammar .o files are compiled before linking in parallel make. Without this, make -jN fires the link step as soon as embed finishes, racing against grammar compilations. 2. test_ui.c: replace system("mkdir -p") with cbm_mkdir_p() for Windows compatibility. Add compat_fs.h include.
1 parent 0d7a9a8 commit c4d38c4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Makefile.cbm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ frontend:
448448
embed: frontend
449449
scripts/embed-frontend.sh graph-ui/dist $(BUILD_DIR)/embedded
450450

451-
cbm-with-ui: embed
451+
cbm-with-ui: embed $(OBJS_VENDORED_PROD)
452452
$(CC) $(CFLAGS_PROD) -o $(BUILD_DIR)/codebase-memory-mcp \
453453
$(MAIN_SRC) $(PROD_SRCS_WITH_ASSETS) \
454454
$(EXTRACTION_SRCS) $(AC_LZ4_SRCS) $(SQLITE_WRITER_SRC) \

0 commit comments

Comments
 (0)