File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed
Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change 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:
Original file line number Diff line number Diff 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")
169169endif
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+
171187help ::
172188 @echo ' BUILD_MSAN={0,1}: Disable/enable memory-sanitizer (Default: disabled)'
173189 @echo ' Use clang for MSAN-builds.'
You can’t perform that action at this time.
0 commit comments