mirror of
https://git.proxmox.com/git/llvm-toolchain
synced 2025-06-15 03:30:56 +00:00
78 lines
2.6 KiB
Diff
78 lines
2.6 KiB
Diff
---
|
|
polly/CMakeLists.txt | 5 ++++-
|
|
polly/lib/CMakeLists.txt | 14 +++++++-------
|
|
2 files changed, 11 insertions(+), 8 deletions(-)
|
|
|
|
Index: llvm-toolchain-snapshot_5.0~svn297449/polly/CMakeLists.txt
|
|
===================================================================
|
|
--- llvm-toolchain-snapshot_5.0~svn297449.orig/polly/CMakeLists.txt
|
|
+++ llvm-toolchain-snapshot_5.0~svn297449/polly/CMakeLists.txt
|
|
@@ -171,11 +171,13 @@ else()
|
|
set(ISL_TARGET PollyISL)
|
|
endif()
|
|
|
|
+find_path(JSONCPP_INCLUDE_PATH json/json.h PATH_SUFFIXES jsoncpp)
|
|
+
|
|
include_directories(
|
|
BEFORE
|
|
${CMAKE_CURRENT_SOURCE_DIR}/include
|
|
${ISL_INCLUDE_DIRS}
|
|
- ${CMAKE_CURRENT_SOURCE_DIR}/lib/External/JSON/include
|
|
+# ${CMAKE_CURRENT_SOURCE_DIR}/lib/External/JSON/include
|
|
${CMAKE_CURRENT_SOURCE_DIR}/lib/External/pet/include
|
|
${CMAKE_CURRENT_SOURCE_DIR}/lib/External
|
|
${CMAKE_CURRENT_BINARY_DIR}/include
|
|
Index: llvm-toolchain-snapshot_5.0~svn297449/polly/lib/CMakeLists.txt
|
|
===================================================================
|
|
--- llvm-toolchain-snapshot_5.0~svn297449.orig/polly/lib/CMakeLists.txt
|
|
+++ llvm-toolchain-snapshot_5.0~svn297449/polly/lib/CMakeLists.txt
|
|
@@ -1,10 +1,10 @@
|
|
set(LLVM_NO_RTTI 1)
|
|
|
|
-set(POLLY_JSON_FILES
|
|
- External/JSON/json_reader.cpp
|
|
- External/JSON/json_value.cpp
|
|
- External/JSON/json_writer.cpp
|
|
-)
|
|
+#set(POLLY_JSON_FILES
|
|
+# External/JSON/json_reader.cpp
|
|
+# External/JSON/json_value.cpp
|
|
+# External/JSON/json_writer.cpp
|
|
+#)
|
|
|
|
set(ISL_CODEGEN_FILES
|
|
CodeGen/IslAst.cpp
|
|
@@ -52,7 +52,7 @@ add_polly_library(Polly
|
|
Support/ScopLocation.cpp
|
|
Support/ISLTools.cpp
|
|
Support/DumpModulePass.cpp
|
|
- ${POLLY_JSON_FILES}
|
|
+# ${POLLY_JSON_FILES}
|
|
Transform/Canonicalization.cpp
|
|
Transform/CodePreparation.cpp
|
|
Transform/DeadCodeElimination.cpp
|
|
@@ -67,7 +67,7 @@ if (GPU_CODEGEN)
|
|
target_link_libraries(Polly PollyPPCG)
|
|
endif (GPU_CODEGEN)
|
|
|
|
-target_link_libraries(Polly ${ISL_TARGET})
|
|
+target_link_libraries(Polly ${ISL_TARGET} jsoncpp)
|
|
|
|
if (BUILD_SHARED_LIBS)
|
|
target_link_libraries(Polly
|
|
Index: llvm-toolchain-snapshot_5.0~svn297449/polly/lib/Exchange/JSONExporter.cpp
|
|
===================================================================
|
|
--- llvm-toolchain-snapshot_5.0~svn297449.orig/polly/lib/Exchange/JSONExporter.cpp
|
|
+++ llvm-toolchain-snapshot_5.0~svn297449/polly/lib/Exchange/JSONExporter.cpp
|
|
@@ -29,8 +29,8 @@
|
|
#include "isl/printer.h"
|
|
#include "isl/set.h"
|
|
#include "isl/union_map.h"
|
|
-#include "json/reader.h"
|
|
-#include "json/writer.h"
|
|
+#include "jsoncpp/json/reader.h"
|
|
+#include "jsoncpp/json/writer.h"
|
|
#include <memory>
|
|
#include <string>
|
|
#include <system_error>
|