-
Notifications
You must be signed in to change notification settings - Fork 310
When is LLVM_PATH needed? #560
Copy link
Copy link
Open
Description
Hello,
I have built freestanding cling RPM packages from version 1.2, as mentioned in #559.
I had some issues with the build and I narrowed it down to this section of cmake code:
cling/lib/Interpreter/CMakeLists.txt
Lines 401 to 405 in 2fdcb6d
| # If both LLVM and Clang are external, we need to define LLVM_PATH in order for | |
| # cling to use the correct (external) LLVM/Clang directories. | |
| if ((NOT builtin_llvm) AND (NOT builtin_clang)) | |
| target_compile_definitions(clingInterpreter PUBLIC "LLVM_PATH=\"${LLVM_BINARY_DIR}\"") | |
| endif() |
I don't understand in which cases this would apply, and what options I need to pass to cmake to avoid it. Right now I just patch lib/Interpreter/CMakeLists.txt at build-time to remove it, and cling stops producing error messages at runtime. Could you explain when this is needed? Maybe there is something wrong with my build that I haven't yet seen at runtime.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels