Skip to content
  • Shilei Tian's avatar
    [OpenMP] Fixed include directories for OpenMP when building OpenMP with LLVM_ENABLE_RUNTIMES · bdd1ad5e
    Shilei Tian authored
    Some LLVM headers are generated by CMake. Before the installation,
    LLVM's headers are distributed everywhere, some of which are in
    `${LLVM_SRC_ROOT}/llvm/include/llvm`, and some are in
    `${LLVM_BINARY_ROOT}/include/llvm`. After intallation, they're all in
    `${LLVM_INSTALLATION_ROOT}/include/llvm`.
    
    OpenMP now depends on LLVM headers. Some headers depend on headers generated
    by CMake. When building OpenMP along with LLVM, a.k.a via `LLVM_ENABLE_RUNTIMES`,
    we need to tell OpenMP where it can find those headers, especially those still
    have not been copied/installed.
    
    Reviewed By: jdoerfert, jhuber6
    
    Differential Revision: https://reviews.llvm.org/D94534
    bdd1ad5e
Loading