third_party: Add sanitizers-cmake module

Signed-off-by: Tomasz Michalak <tmichalak@antmicro.com>
This commit is contained in:
Tomasz Michalak 2019-10-08 12:34:00 +02:00
parent daa516585e
commit 7b8561ad6f
3 changed files with 7 additions and 0 deletions

3
.gitmodules vendored
View File

@ -22,3 +22,6 @@
[submodule "third_party/yosys"]
path = third_party/yosys
url = https://github.com/YosysHQ/yosys
[submodule "third_party/sanitizers-cmake"]
path = third_party/sanitizers-cmake
url = https://github.com/arsenm/sanitizers-cmake.git

View File

@ -3,6 +3,9 @@ cmake_minimum_required(VERSION 3.5.0)
project(prjxray)
option(PRJXRAY_BUILD_TESTING "" OFF)
# Add sanitizers-cmake package
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/third_party/sanitizers-cmake/cmake" ${CMAKE_MODULE_PATH})
find_package(Sanitizers)
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release CACHE STRING
"Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel."

1
third_party/sanitizers-cmake vendored Submodule

@ -0,0 +1 @@
Subproject commit 99e159ec9bc8dd362b08d18436bd40ff0648417b