Skip to content
This repository has been archived by the owner on May 17, 2021. It is now read-only.

Commit

Permalink
Merge pull request #286 from bmstu-iu8-cpp-sem-3/master
Browse files Browse the repository at this point in the history
added pic toolchain for asan tsan lsan
  • Loading branch information
ruslo authored Nov 7, 2018
2 parents 4558dca + 69d204e commit 435ac71
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bin/detail/toolchain_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,7 @@ def verify(self):
toolchain_table += [
Toolchain('sanitize-leak', 'Unix Makefiles'),
Toolchain('sanitize-leak-cxx17', 'Unix Makefiles'),
Toolchain('sanitize-leak-cxx17-pic', 'Unix Makefiles'),
Toolchain('sanitize-memory', 'Unix Makefiles'),
Toolchain('linux-mingw-w32', 'Unix Makefiles'),
Toolchain('linux-mingw-w64', 'Unix Makefiles'),
Expand Down Expand Up @@ -655,8 +656,10 @@ def verify(self):
Toolchain('libcxx-hid-sections', 'Unix Makefiles'),
Toolchain('sanitize-address', 'Unix Makefiles'),
Toolchain('sanitize-address-cxx17', 'Unix Makefiles'),
Toolchain('sanitize-address-cxx17-pic', 'Unix Makefiles'),
Toolchain('sanitize-thread', 'Unix Makefiles'),
Toolchain('sanitize-thread-cxx17', 'Unix Makefiles'),
Toolchain('sanitize-thread-cxx17-pic', 'Unix Makefiles'),
Toolchain('arm-openwrt-linux-muslgnueabi', 'Unix Makefiles'),
Toolchain('openbsd-egcc-cxx11-static-std', 'Unix Makefiles'),
]
Expand Down
22 changes: 22 additions & 0 deletions sanitize-address-cxx17-pic.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Copyright (c) 2014, 2018 Ruslan Baratov
# All rights reserved.

if(DEFINED POLLY_SANITIZE_ADDRESS_CXX17_PIC_CMAKE_)
return()
else()
set(POLLY_SANITIZE_ADDRESS_CXX17_PIC_CMAKE_ 1)
endif()

include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake")

polly_init(
"Clang address sanitizer / c++17 support / PIC"
"Unix Makefiles"
)

include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake")

include("${CMAKE_CURRENT_LIST_DIR}/compiler/clang.cmake")
include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx17.cmake")
include("${CMAKE_CURRENT_LIST_DIR}/flags/fpic.cmake")
include("${CMAKE_CURRENT_LIST_DIR}/flags/sanitize_address.cmake")
22 changes: 22 additions & 0 deletions sanitize-leak-cxx17-pic.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Copyright (c) 2014, 2018 Ruslan Baratov
# All rights reserved.

if(DEFINED POLLY_SANITIZE_LEAK_CXX17_PIC_CMAKE_)
return()
else()
set(POLLY_SANITIZE_LEAK_CXX17_PIC_CMAKE_ 1)
endif()

include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake")

polly_init(
"Clang memory leaks sanitizer / c++17 support / PIC"
"Unix Makefiles"
)

include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake")

include("${CMAKE_CURRENT_LIST_DIR}/compiler/clang.cmake")
include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx17.cmake")
include("${CMAKE_CURRENT_LIST_DIR}/flags/fpic.cmake")
include("${CMAKE_CURRENT_LIST_DIR}/flags/sanitize_leak.cmake")
22 changes: 22 additions & 0 deletions sanitize-thread-cxx17-pic.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Copyright (c) 2014, 2018 Ruslan Baratov
# All rights reserved.

if(DEFINED POLLY_SANITIZE_THREAD_CXX17_PIC_CMAKE_)
return()
else()
set(POLLY_SANITIZE_THREAD_CXX17_PIC_CMAKE_ 1)
endif()

include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_init.cmake")

polly_init(
"Clang thread sanitizer / c++17 support / PIC"
"Unix Makefiles"
)

include("${CMAKE_CURRENT_LIST_DIR}/utilities/polly_common.cmake")

include("${CMAKE_CURRENT_LIST_DIR}/compiler/clang.cmake")
include("${CMAKE_CURRENT_LIST_DIR}/flags/cxx17.cmake")
include("${CMAKE_CURRENT_LIST_DIR}/flags/fpic.cmake")
include("${CMAKE_CURRENT_LIST_DIR}/flags/sanitize_thread.cmake")

0 comments on commit 435ac71

Please sign in to comment.