<commit_before># (Mostly) blatant copy of https://github.com/numba/llvmlite/tree/master/conda-recipes/llvmdev

{% set version = "3.8.1" %}
{% set sha256 = "6e82ce4adb54ff3afc18053d6981b6aed1406751b8742582ed50f04b5ab475f9" %}

package:
  name: llvmdev38
  version: {{ version }}

source:
  fn: llvm-{{ version }}.src.tar.xz
  url: http://llvm.org/releases/{{ version }}/llvm-{{ version }}.src.tar.xz
  sha256: {{ sha256 }}
  patches:
    # https://llvm.org/bugs/show_bug.cgi?id=15356
    - llvm-elf-relocation.patch
    # https://llvm.org/bugs/show_bug.cgi?id=25788
    - llvm-parse-fp-constants.patch
    # https://llvm.org/bugs/show_bug.cgi?id=25565
    - llvm-build-race-condition.patch
    # http://lists.llvm.org/pipermail/llvm-dev/2016-January/094520.html
    - llvm-lto-static.patch  # [win]

build:
  number: 0

requirements:
  build:
    - cmake
    # Needed to unpack the source tarball
    - m2-xz  # [py27 and win32]
    - m2w64-xz  # [py27 and win64]
    # Needed to build LLVM
    - python
    - system  # [linux and not armv7l]
  run:
    - system  # [linux and not armv7l]

test:
  commands:
    - llvm-config --libs  # [not win]
    - llc -version

about:
  home: http://llvm.org/
  license: NCSA
  license_file: LICENSE.TXT
  summary: Development headers and libraries for LLVM

extra:
  recipe-maintainers:
    - inducer
    - pitrou<commit_msg>Fix test run commands<commit_after># (Mostly) blatant copy of https://github.com/numba/llvmlite/tree/master/conda-recipes/llvmdev

{% set shortversion = "3.8" %}
{% set version = "3.8.1" %}
{% set sha256 = "6e82ce4adb54ff3afc18053d6981b6aed1406751b8742582ed50f04b5ab475f9" %}

package:
  name: llvmdev38
  version: {{ version }}

source:
  fn: llvm-{{ version }}.src.tar.xz
  url: http://llvm.org/releases/{{ version }}/llvm-{{ version }}.src.tar.xz
  sha256: {{ sha256 }}
  patches:
    # https://llvm.org/bugs/show_bug.cgi?id=15356
    - llvm-elf-relocation.patch
    # https://llvm.org/bugs/show_bug.cgi?id=25788
    - llvm-parse-fp-constants.patch
    # https://llvm.org/bugs/show_bug.cgi?id=25565
    - llvm-build-race-condition.patch
    # http://lists.llvm.org/pipermail/llvm-dev/2016-January/094520.html
    - llvm-lto-static.patch  # [win]

build:
  number: 0

requirements:
  build:
    - cmake
    # Needed to unpack the source tarball
    - m2-xz  # [py27 and win32]
    - m2w64-xz  # [py27 and win64]
    # Needed to build LLVM
    - python
    - system  # [linux and not armv7l]
  run:
    - system  # [linux and not armv7l]

test:
  commands:
    - $PREFIX/lib/llvm-{{ shortversion }}/bin/llvm-config --libs  # [not win]
    - $PREFIX/lib/llvm-{{ shortversion }}/bin/llc -version

about:
  home: http://llvm.org/
  license: NCSA
  license_file: LICENSE.TXT
  summary: Development headers and libraries for LLVM

extra:
  recipe-maintainers:
    - inducer
    - pitrou
{'fraction_non_alphanumeric': 0.1462214411247803, 'fraction_numerical': 0.06678383128295255, 'mean_word_length': 2.8616010854816825, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4982352', 'n_tokens_mistral': 1242, 'n_tokens_neox': 1120, 'n_words': 213}