<commit_before>{% set name = "cmdstan" %}
{% set version = "2.27.0" %}
{% set posix = 'm2-' if win else '' %}
{% set native = 'm2w64-' if win else '' %}

package:
  name: {{ name|lower }}
  version: {{ version }}

source:
  url: https://github.com/stan-dev/{{ name }}/releases/download/v{{ version }}/{{ name }}-{{ version }}.tar.gz
  sha256: ff71f4d255cf26c2d8366a8173402656a659399468871305056aa3d56329c1d5

build:
  number: 0
  script:
    - make --version
    - make print-OS
    - make print-CXX
    - python -c "from cmdstanpy.install_cmdstan import *; install_version('.', verbose=True)"
    - mv ./bin "${PREFIX}"  # [not win]
    - copy bin %PREFIX%  # [win]
    # No segfault in build env
    - stanc --help

requirements:
  build:
    - {{ compiler('c') }}              # [not win]
    - {{ compiler('m2w64_c') }}        # [win]
    - {{ compiler('cxx') }}            # [not win]
    - {{ compiler('m2w64_cxx') }}      # [win]
    - {{ posix }}filesystem        # [win]<commit_msg>Try to set TBB_CXX_TYPE<commit_after>{% set name = "cmdstan" %}
{% set version = "2.27.0" %}
{% set posix = 'm2-' if win else '' %}
{% set native = 'm2w64-' if win else '' %}

package:
  name: {{ name|lower }}
  version: {{ version }}

source:
  url: https://github.com/stan-dev/{{ name }}/releases/download/v{{ version }}/{{ name }}-{{ version }}.tar.gz
  sha256: ff71f4d255cf26c2d8366a8173402656a659399468871305056aa3d56329c1d5

build:
  number: 0
  script:
    - export TBB_CXX_TYPE=g++  # [linux]
    - make --version
    - make print-OS
    - make print-CXX
    - python -c "from cmdstanpy.install_cmdstan import *; install_version('.', verbose=True)"
    - mv ./bin "${PREFIX}"  # [not win]
    - copy bin %PREFIX%  # [win]
    # No segfault in build env
    - stanc --help

requirements:
  build:
    - {{ compiler('c') }}              # [not win]
    - {{ compiler('m2w64_c') }}        # [win]
    - {{ compiler('cxx') }}            # [not win]
    - {{ compiler('m2w64_cxx') }}      # [win]
    - {{ posix }}filesystem        # [win]
{'fraction_non_alphanumeric': 0.18740777176586326, 'fraction_numerical': 0.06591244466305952, 'mean_word_length': 2.4650766609880748, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '1748807', 'n_tokens_mistral': 848, 'n_tokens_neox': 753, 'n_words': 171}