meta.yaml 2.29 KB
Newer Older
dugupeiwen's avatar
init  
dugupeiwen committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
{% set shortversion = "roc-1.8" %}
{% set version = "roc-1.8.x" %}
{% set conda_version = "roc_1.8.x" %}
{% set build_number = "0" %}

package:
  name: llvmdev_amdgcn
  version: {{ conda_version }}

source:
  - git_url: https://github.com/RadeonOpenCompute/llvm.git
    git_tag: {{ version }}
    patches:
        # undefined behavior bug due to Twine usage
        - twine_cfg_undefined_behavior.patch
  - git_url: https://github.com/RadeonOpenCompute/lld.git
    git_tag: {{ version }}
    folder: tools/lld

build:
  number: {{ build_number }}
  script_env:
    - PY_VCRUNTIME_REDIST
  ignore_run_exports:
    # Is static-linked
    - xar

requirements:
  build:
    # We cannot do this on macOS or windows
    # OSX already has llvm so has to be handled
    # at build.sh time
    # Windows needs to build using vs2015_runtime
    # irrespective of python version
    - {{ compiler('c') }} # [unix]
    - {{ compiler('cxx') }} # [unix]
    - cmake
    # Needed to unpack the source tarball
    - m2w64-xz  # [py27 and win]
    # ninja not currently used, bld.bat needs an update
    - ninja  # [win]
    # Needed to build LLVM
    - python
    # need vs2015_runtime to build, do not want it at run time
    # as extensions for py27 need vs2008
    - vs2015_runtime # [win]
    - make # [unix]
  host:
    # needed for llc at runtime
    - zlib # [not win]
    - xar # [osx]

test:
  requires:
    - python
  files:
    - cfg_test.ll
    - test_cfg_dot.py
  commands:
    - $PREFIX/bin/llvm-config --libs                         # [not win]
    - $PREFIX/bin/llc -version                               # [not win]

    - if not exist %LIBRARY_INC%\\llvm\\Pass.h exit 1        # [win]
    - if not exist %LIBRARY_LIB%\\LLVMSupport.lib exit 1     # [win]

    - test -f $PREFIX/include/llvm/Pass.h                    # [unix]
    - test -f $PREFIX/lib/libLLVMSupport.a                   # [unix]

    - test -f $PREFIX/lib/libLLVMCore.a                      # [not win]
    # Test for ../twine_cfg_undefined_behavior.patch
    - $PREFIX/bin/opt -dot-cfg cfg_test.ll                   # [not win]
    - python test_cfg_dot.py                                 # [not win]

about:
  home: http://llvm.org/
  dev_url: https://github.com/llvm-mirror/llvm
  license: NCSA
  license_file: LICENSE.TXT
  summary: Development headers and libraries for LLVM