mirror of
https://git.proxmox.com/git/llvm-toolchain
synced 2025-06-12 11:06:17 +00:00
59 lines
1.6 KiB
Diff
59 lines
1.6 KiB
Diff
---
|
|
polly/CMakeLists.txt | 5 ++++-
|
|
polly/lib/CMakeLists.txt | 14 +++++++-------
|
|
2 files changed, 11 insertions(+), 8 deletions(-)
|
|
|
|
--- a/polly/CMakeLists.txt
|
|
+++ b/polly/CMakeLists.txt
|
|
@@ -147,10 +147,13 @@ if (CUDALIB_FOUND)
|
|
INCLUDE_DIRECTORIES( ${CUDALIB_INCLUDE_DIR} )
|
|
endif(CUDALIB_FOUND)
|
|
|
|
+find_path(JSONCPP_INCLUDE_PATH json/json.h PATH_SUFFIXES jsoncpp)
|
|
+
|
|
include_directories(
|
|
BEFORE
|
|
${CMAKE_CURRENT_SOURCE_DIR}/include
|
|
- ${CMAKE_CURRENT_SOURCE_DIR}/lib/JSON/include
|
|
+# ${CMAKE_CURRENT_SOURCE_DIR}/lib/JSON/include
|
|
+ ${JSONCPP_INCLUDE_PATH}
|
|
${CMAKE_CURRENT_BINARY_DIR}/lib/External/isl/include
|
|
${CMAKE_CURRENT_SOURCE_DIR}/lib/External/isl/include
|
|
${CMAKE_CURRENT_SOURCE_DIR}/lib/External/pet/include
|
|
--- a/polly/lib/CMakeLists.txt
|
|
+++ b/polly/lib/CMakeLists.txt
|
|
@@ -1,10 +1,10 @@
|
|
set(LLVM_NO_RTTI 1)
|
|
|
|
-set(POLLY_JSON_FILES
|
|
- JSON/json_reader.cpp
|
|
- JSON/json_value.cpp
|
|
- JSON/json_writer.cpp
|
|
-)
|
|
+# set(POLLY_JSON_FILES
|
|
+# JSON/json_reader.cpp
|
|
+# JSON/json_value.cpp
|
|
+# JSON/json_writer.cpp
|
|
+# )
|
|
|
|
set(ISL_CODEGEN_FILES
|
|
CodeGen/IslAst.cpp
|
|
@@ -50,7 +50,7 @@ add_polly_library(Polly
|
|
Support/RegisterPasses.cpp
|
|
Support/ScopHelper.cpp
|
|
Support/ScopLocation.cpp
|
|
- ${POLLY_JSON_FILES}
|
|
+# ${POLLY_JSON_FILES}
|
|
Transform/Canonicalization.cpp
|
|
Transform/CodePreparation.cpp
|
|
Transform/DeadCodeElimination.cpp
|
|
@@ -64,7 +64,7 @@ if (GPU_CODEGEN)
|
|
target_link_libraries(Polly PollyPPCG)
|
|
endif (GPU_CODEGEN)
|
|
|
|
-target_link_libraries(Polly PollyISL)
|
|
+target_link_libraries(Polly PollyISL jsoncpp)
|
|
|
|
if (BUILD_SHARED_LIBS)
|
|
target_link_libraries(Polly
|