fixing some data races

This commit is contained in:
2025-06-03 21:57:47 +02:00
parent 66c42af1b8
commit da4a141c85
6 changed files with 49 additions and 23 deletions

View File

@@ -19,6 +19,7 @@ CXXFLAGS = -std=c++20 -I ScopEngine/Runtime/Includes -I Application -I ScopEngin
LDFLAGS = -lSDL2 ScopEngine/Bin/engine.a
DEBUG ?= false
TSAN ?= false
MODE = "release"
NZSLC = ./ScopEngine/Assets/Vendors/nzslc.x86_64
@@ -43,6 +44,11 @@ else
COLOR := $(_GREEN)
endif
ifeq ($(TSAN), true)
CXXFLAGS += -fsanitize=thread
LDFLAGS += -fsanitize=thread
endif
JOBS = $(patsubst -j%,%,$(filter -j%,$(MAKEFLAGS)))
RM = rm -rf