diff options
author | Tom McLaughlin <tom@codedown.io> | 2022-11-22 16:15:29 -0800 |
---|---|---|
committer | Tom McLaughlin <tom@codedown.io> | 2023-04-04 16:38:48 -0700 |
commit | d395cc96341901d8be4c3d5a3627e44536198a4f (patch) | |
tree | 564f07d58336d39e09716f5da0070ab6aaffbace /pkgs/development/interpreters/cling | |
parent | 3405841706c4c5c41f35d3fa3a1c5cac42c9ee7b (diff) |
Tweaking LLVM patch
Diffstat (limited to 'pkgs/development/interpreters/cling')
-rw-r--r-- | pkgs/development/interpreters/cling/use-patched-llvm.patch | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pkgs/development/interpreters/cling/use-patched-llvm.patch b/pkgs/development/interpreters/cling/use-patched-llvm.patch index 5f828ae979ad2..34c3bdb438760 100644 --- a/pkgs/development/interpreters/cling/use-patched-llvm.patch +++ b/pkgs/development/interpreters/cling/use-patched-llvm.patch @@ -1,16 +1,16 @@ -diff --git a/lib/Interpreter/CMakeLists.txt b/lib/Interpreter/CMakeLists.txt +diff --git a/tools/cling/lib/Interpreter/CMakeLists.txt b/tools/cling/lib/Interpreter/CMakeLists.txt index 75396717..6a617ab4 100644 ---- a/lib/Interpreter/CMakeLists.txt -+++ b/lib/Interpreter/CMakeLists.txt +--- a/tools/cling/lib/Interpreter/CMakeLists.txt ++++ b/tools/cling/lib/Interpreter/CMakeLists.txt @@ -344,3 +344,29 @@ add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/cling-compiledata.h - + add_file_dependencies(${CMAKE_CURRENT_SOURCE_DIR}/CIFactory.cpp ${CMAKE_CURRENT_BINARY_DIR}/cling-compiledata.h) + +# If LLVM is external, but Clang is builtin, we must use some files +# from patched (builtin) version of LLVM +if ((NOT builtin_llvm) AND builtin_clang) -+ set(FixInclude "${CMAKE_SOURCE_DIR}/interpreter/llvm/src/include") ++ set(FixInclude "${CMAKE_SOURCE_DIR}/interpreter/llvm/include") + + get_property(P SOURCE IncrementalJIT.cpp PROPERTY INCLUDE_DIRECTORIES) + list(INSERT P 0 ${FixInclude}) |