Ticket #50509: polly_LLVM_LINK_LLVM_DYLIB_fix.patch

File polly_LLVM_LINK_LLVM_DYLIB_fix.patch, 504 bytes (added by howarth.at.macports@…, 8 years ago)

back port of polly trunk r259659 to properly link LLVMPolly.so when LLVM_LINK_LLVM_DYLIB is enabled

  • tools/polly/lib/CMakeLists.txt

    a b  
    7777  link_directories(
    7878    ${LLVM_LIBRARY_DIR}
    7979  )
     80elseif (LLVM_LINK_LLVM_DYLIB)
     81  target_link_libraries(Polly
     82    LLVM
     83  )
     84  link_directories(
     85    ${LLVM_LIBRARY_DIR}
     86  )
    8087endif()
    8188
    8289# Build a monolithic Polly.a and a thin module LLVMPolly.moduleext that links to