Skip to content

When is LLVM_PATH needed? #560

@bberberov

Description

@bberberov

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:

# 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions