kind: cmake
description: Low Level Virtual Machine
depends:
- core.bst
sources:
- kind: git
  url: upstream:llvm
  track: release_40
  ref: c8fccc53ed66d505898f8850bcc690c977a7c9a7
config:
  configure-commands:
  - |
    mkdir build/
    cd build/

    CC=gcc CXX=g++                              \
    cmake -DCMAKE_INSTALL_PREFIX="%{prefix}"      \
          -DLLVM_ENABLE_FFI=ON                  \
          -DCMAKE_BUILD_TYPE=Release            \
          -DLLVM_BUILD_LLVM_DYLIB=ON            \
          -DLLVM_TARGETS_TO_BUILD="host;AMDGPU" \
          -Wno-dev ..
  build-commands:
  - |
    cd build/
    make
  install-commands:
  - |
    cd build/
    make DESTDIR="%{install-root}" install
