Merge pull request #1089 from antmicro/sanitizers_cmake

third_party: Add sanitizers-cmake module
This commit is contained in:
litghost 2019-10-08 18:12:43 -07:00 committed by GitHub
commit 8739b9f9bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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