-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
meta.yaml
49 lines (39 loc) · 1.35 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
{% set name = "bazel-toolchain" %}
{% set version = "0.2.1" %}
package:
name: {{ name|lower }}
version: {{ version }}
build:
number: 1
skip: true # [win]
requirements:
run_constrained:
# This can be used without bazel from conda-forge,
# e.g. when bootstrapping bazel itself.
- bazel >=6
- sed
test:
requires:
- {{ stdlib('c') }}
- {{ compiler('c') }}
- {{ compiler('cxx') }}
- bazel
about:
home: https://github.com/conda-forge/bazel-toolchain-feedstock
summary: Helper script to generate a crosscompile toolchain for Bazel with the currently activated compiler settings.
description: |
This package generates a crosstool toolchain for Bazel that uses the currently
activated compilers / linker as defined by the environment variables. It does
take various conda(-forge) specifics into account for this. In addition to generating
a toolchain, it also sets various environment variables that need to be set for
the toolchain to work. Especially you will need to pass in the correct ${TARGET_CPU}
to ensure that cross-compiling also works.
In build.sh
source gen-bazel-toolchain
bazel build --crosstool_top=//bazel_toolchain:toolchain --cpu ${TARGET_CPU} …
license: BSD-3-Clause AND Apache-2.0
license_file: LICENSE.txt
extra:
recipe-maintainers:
- xhochy
- wolfv