Skip to content

Commit 98b2aa6

Browse files
committed
upload tsan build as artifact
1 parent aa0b546 commit 98b2aa6

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.github/workflows/tsan.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,13 @@ jobs:
8686
run: |
8787
cd build
8888
ctest -v
89+
90+
- name: tsan result
91+
uses: actions/upload-artifact@v2
92+
if: always()
93+
with:
94+
name: tsan-report
95+
path: build
8996

9097
- name: revert ownership of workspace to root
9198
run: sudo chown -R root:root .

CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,6 @@ if(ACL_TSAN)
7474
if(CMAKE_COMPILER_IS_GNUCXX)
7575
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ltsan -fsanitize=thread -g -O1 -fno-omit-frame-pointer -fPIC")
7676
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -ltsan -fsanitize=thread -g -O1 -fno-omit-frame-pointer -fPIC")
77-
# set(CMAKE_C_FLAGS_TSAN "-fsanitize=thread -g -O1" CACHE STRING "Flags used by the C compiler during ThreadSanitizer builds." FORCE)
78-
# set(CMAKE_CXX_FLAGS_TSAN "-fsanitize=thread -g -O1" CACHE STRING "Flags used by the C++ compiler during ThreadSanitizer builds." FORCE)
79-
set(CTEST_MEMORYCHECK_TYPE "ThreadSanitizer")
80-
# set(MEMORYCHECK_SANITIZER_OPTIONS "Thread")
8177
else()
8278
message(FATAL_ERROR "cannot build with tsan tools due to unsupported CXX compiler")
8379
endif()

0 commit comments

Comments
 (0)