fix: raspberry pi logs

This commit is contained in:
2026-11-11 19:23:15 +01:00
parent a9b730ff12
commit 03f0768d46
2 changed files with 8 additions and 3 deletions
+3 -2
View File
@@ -10,6 +10,7 @@ VERSION ?= invar-$(shell grep -Eo '[0-9]+\.[0-9]+\.[0-9]+' $(FORGE_SRC)/configur
SOURCES ?= $(FORGE_SRC)/src/*.h $(FORGE_SRC)/src/*.c $(FORGE_SRC)/hashmap.c/hashmap.c $(FORGE_SRC)/log.c/src/log.c
CFLAGS ?= -Ofast -Ofast -march=native -flto -funroll-loops -fprefetch-loop-arrays -fno-exceptions -fopenmp -I$(FORGE_SRC)/include -DGLFW_INCLUDE_NONE -DGLFW_NATIVE_INCLUDE_NONE -DVERSION=\"$(VERSION)\" -DOPENGL_MAJOR_VERSION=3 -DOPENGL_MINOR_VERSION=1
LDLIBS ?= -lm -lGL -lglfw -lasound
LOG_FIX ?= stdbuf -oL -eL
# FILES
@@ -56,11 +57,11 @@ build: $(BUILD_DIR)/$(TARGET)
.PHONY: start-fg
start-fg: $(BUILD_DIR)/$(TARGET)
@$(BUILD_DIR)/$(TARGET) $(RUN_ARGS) 2>&1 | tee -ai $(PROJECT_DIR)/forge.log 2>&1 > /dev/null
@$(LOG_FIX) $(BUILD_DIR)/$(TARGET) $(RUN_ARGS) >> $(PROJECT_DIR)/forge.log 2>&1
.PHONY: start-bg
start-bg:
@python3 $(PROJECT_DIR)/__main__.py 2>&1 | tee -ai $(PROJECT_DIR)/python.log 2>&1 > /dev/null &
@$(LOG_FIX) python3 $(PROJECT_DIR)/__main__.py >> $(PROJECT_DIR)/python.log 2>&1 &
.PHONY: start
start: start-bg start-fg