Skip to content

Commit bbd7584

Browse files
committed
debug ci
1 parent c9243e3 commit bbd7584

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

.github/workflows/run-tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ jobs:
7575
INCLUDE_SLOW_TESTS: ${{ matrix.include_slow_tests }}
7676
RUN_NIGHTLY_TESTS: ${{ matrix.run_nightly_tests }}
7777
steps:
78+
-name: Observe build space
79+
run: df -h
7880
# - name: Maximize build space
7981
# uses: easimon/maximize-build-space@master
8082
# with:

Makefile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,22 @@ else ifneq "$(BUILD_MSAN)" "0"
168168
$(error Unknown BUILD_MSAN mode "$(BUILD_MSAN)". Valid values are "0" or "1". Default is "0")
169169
endif
170170

171+
# ************************************************************************
172+
# Thread sanitizer
173+
# - Builds will fail with gcc due to compiler error. Use clang instead.
174+
# - Tests will run even slower in thread sanitizer builds.
175+
ifndef BUILD_TSAN
176+
BUILD_TSAN=0
177+
endif
178+
179+
ifeq "$(BUILD_TSAN)" "1"
180+
CFLAGS += -fsanitize=thread
181+
LDFLAGS += -fsanitize=thread
182+
BUILD_DIR:=$(BUILD_DIR)-tsan
183+
else ifneq "$(BUILD_TSAN)" "0"
184+
$(error Unknown BUILD_TSAN mode "$(BUILD_TSAN)". Valid values are "0" or "1". Default is "0")
185+
endif
186+
171187
help::
172188
@echo ' BUILD_MSAN={0,1}: Disable/enable memory-sanitizer (Default: disabled)'
173189
@echo ' Use clang for MSAN-builds.'

0 commit comments

Comments
 (0)