-
-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathmeta.yaml
176 lines (162 loc) · 6.32 KB
/
meta.yaml
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
{% if version is not defined %}
{% set version = "18.1.8" %}
{% endif %}
{% set major_ver = version.split(".")[0] %}
# in the past we've had to uncouple the compiler version from the version
# of the C++ stdlib; keep the variable in case this happens again
{% set libcxx_major = major_ver %}
{% if CBUILD is not defined %}
{% set CBUILD = "dummy" %}
{% endif %}
{% set build_number = 19 %}
# pretend this variable is used, so that smithy populates the variant configs
# [meson_release_flag]
package:
name: clang-compiler-activation
version: {{ version }}
# # Originally this was to enable automatic updates from the bot,
# # but that doesn't work with several LLVM versions at the same time
# source:
# url: https://github.com/llvm/llvm-project/releases/download/llvmorg-{{ version.replace(".rc", "-rc") }}/llvm-project-{{ version.replace(".rc", "rc") }}.src.tar.xz
# sha256: 326335a830f2e32d06d0a36393b5455d17dc73e0bd1211065227ee014f92cbf8 # [version == "13.0.1"]
build:
skip: true # [win]
number: {{ build_number }}
requirements:
build:
- cctools_{{ target_platform }} # [osx]
- libcxx {{ libcxx_major }}
- gcc_{{ target_platform }} # [linux]
- clang {{ version }} # [osx]
outputs:
- name: clang_impl_{{ cross_target_platform }}
script: install-clang.sh
requirements:
- clang {{ version }}
- llvm-tools {{ version }}
- cctools_{{ target_platform }} # [osx]
- cctools_{{ cross_target_platform }}
- ld64_{{ cross_target_platform }}
- ld64_{{ target_platform }} # [osx]
# this brings in an extra symlink of ld -> x86_64-apple-darwin13.4.0-ld
# adding these generated an error w/ libtool: https://github.com/conda-forge/libtool-feedstock/issues/24
# - ld64 # [cross_target_platform == target_platform]
# - cctools # [cross_target_platform == target_platform]
# This brings in libraries for linux too. Split this again?
- compiler-rt {{ version }}
# For OSX, compiler-rt library includes both x86_64 and arm64.
# Therefore `compiler-rt_osx-64` and `compiler-rt_osx-arm64` are basically the same
# and clobber each other. Don't bring both here.
- compiler-rt_{{ cross_target_platform }} {{ version }} # [linux]
- gcc_impl_{{ target_platform }} # [linux]
test:
commands:
- {{ CBUILD }}-clang --version
- {{ CBUILD }}-clang-cpp --version
- {{ macos_machine }}-clang --version
- {{ macos_machine }}-clang-cpp --version
- name: clang_{{ cross_target_platform }}
script: install-clang-scripts.sh
requirements:
run:
- {{ pin_subpackage("clang_impl_" ~ cross_target_platform, exact=True) }}
test:
commands:
- {{ CBUILD }}-clang --version
- {{ CBUILD }}-clang-cpp --version
- {{ macos_machine }}-clang --version
- {{ macos_machine }}-clang-cpp --version
- name: clangxx_impl_{{ cross_target_platform }}
script: install-clangxx.sh
requirements:
build:
- cctools_{{ target_platform }} # [osx]
host:
- clangxx {{ version }}
- libcxx {{ libcxx_major }} # [osx]
- {{ pin_subpackage('clang_impl_' ~ cross_target_platform, exact=True) }}
- gxx_impl_{{ target_platform }} # [linux]
# hack to force the solver to work
- libllvm{{ major_ver }} {{ version }}
run:
- clangxx {{ version }}
# This is not needed in Linux for cross-compiling in a conda-build env, but is needed outside
- libcxx >={{ libcxx_major }}
- {{ pin_subpackage('clang_' ~ cross_target_platform, exact=True) }}
- gxx_impl_{{ target_platform }} # [linux]
test:
commands:
- echo {{ MACOSX_DEPLOYMENT_TARGET }} # [linux]
- echo {{ uname_kernel_release }}
- echo {{ uname_machine }}
- echo {{ FINAL_PYTHON_SYSCONFIGDATA_NAME }}
- echo {{ CBUILD }}
- echo {{ meson_cpu_family }}
- {{ CBUILD }}-clang++ --version
- {{ macos_machine }}-clang++ --version
- name: clangxx_{{ cross_target_platform }}
script: install-clangxx-scripts.sh
build:
# Since transitive run_exports are not currently possible
# (here I would like the run dependency on clangxx to pull in the run_exports from it).
run_exports:
strong:
- libcxx >={{ libcxx_major }}
requirements:
run:
- {{ pin_subpackage("clangxx_impl_" ~ cross_target_platform, exact=True) }}
- {{ pin_subpackage("clang_" ~ cross_target_platform, exact=True) }}
test:
commands:
- {{ CBUILD }}-clang++ --version
- {{ macos_machine }}-clang++ --version
- name: clang_bootstrap_{{ cross_target_platform }}
script: install-clang-bootstrap.sh
requirements:
build:
- cctools_{{ target_platform }} # [osx]
host:
- clangxx {{ version }}
- libcxx {{ libcxx_major }} # [cross_target_platform in ("osx-64", "osx-arm64")]
- cctools_{{ cross_target_platform }}
- ld64_{{ cross_target_platform }}
- {{ pin_subpackage('clang_' ~ cross_target_platform, exact=True) }}
- {{ pin_subpackage('clangxx_' ~ cross_target_platform, exact=True) }}
# hack to force the solver to work
- libllvm{{ major_ver }} {{ version }}
build:
always_include_files:
- bin/
- etc/
- include/
- lib/
- libexec/
- share/
ignore_run_exports_from:
- libllvm{{ major_ver }}
- {{ pin_subpackage('clang_' ~ cross_target_platform, exact=True) }}
- {{ pin_subpackage('clangxx_' ~ cross_target_platform, exact=True) }}
skip: true # [not osx]
test:
commands:
- {{ macos_machine }}-clang --version
- {{ macos_machine }}-clang-cpp --version
- {{ macos_machine }}-clang++ --version
about:
home: https://llvm.org
license: Apache-2.0
license_family: Apache
license_file: LLVM_LICENSE.txt
summary: clang compiler components in one package for bootstrapping clang
about:
home: http://github.com/conda-forge/clang-compiler-activation-feedstock
license: BSD-3-Clause
license_family: BSD
license_file: LICENSE.txt
summary: clang compilers for conda-build 3
extra:
recipe-maintainers:
- isuruf
- mingwandroid
- katietz
- h-vetinari