summaryrefslogtreecommitdiff
path: root/src/pal/src/CMakeLists.txt
diff options
context:
space:
mode:
authorJan Vorlicek <janvorli@microsoft.com>2018-03-27 15:27:01 +0200
committerGitHub <noreply@github.com>2018-03-27 15:27:01 +0200
commit6ecb1ac550ec1876094264cdbdd629c1a832ebee (patch)
tree17d159ec127b59ee7253be76750bd44d8598b890 /src/pal/src/CMakeLists.txt
parent4e9206ca403d3c4a86c8611b75dca57655e365ea (diff)
downloadcoreclr-6ecb1ac550ec1876094264cdbdd629c1a832ebee.tar.gz
coreclr-6ecb1ac550ec1876094264cdbdd629c1a832ebee.tar.bz2
coreclr-6ecb1ac550ec1876094264cdbdd629c1a832ebee.zip
Fix build without libunwind installed (#17221)
* Fix build without libunwind installed I have removed libunwind dependency in a recent commit, but it turns out that the build was using incorrect include paths and it was still depending on the libunwind installation for the libunwind.h header. This change fixes it. * Fix clang warning The libunwind headers contain two empty structs and clang issues a warning since the size of such structs is 0 in C and 1 in C++. This is benign for our purposes, since the affected structs are not directly used by our code.
Diffstat (limited to 'src/pal/src/CMakeLists.txt')
-rw-r--r--src/pal/src/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pal/src/CMakeLists.txt b/src/pal/src/CMakeLists.txt
index d185004074..dbff63dc00 100644
--- a/src/pal/src/CMakeLists.txt
+++ b/src/pal/src/CMakeLists.txt
@@ -11,6 +11,10 @@ add_compile_options(-fPIC)
if(NOT CLR_CMAKE_USE_SYSTEM_LIBUNWIND)
include_directories(libunwind/include)
+ include_directories(libunwind/include/tdep)
+ include_directories(${CMAKE_CURRENT_BINARY_DIR}/libunwind/include)
+ include_directories(${CMAKE_CURRENT_BINARY_DIR}/libunwind/include/tdep)
+
add_subdirectory(libunwind)
endif(NOT CLR_CMAKE_USE_SYSTEM_LIBUNWIND)