Skip to content

Commit e3aa6cf

Browse files
committed
flesh out clang announcement
1 parent e491bcd commit e3aa6cf

File tree

2 files changed

+36
-1
lines changed

2 files changed

+36
-1
lines changed

news/2024-04-09-clang-everywhere.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

news/2024-04-30-clang-everywhere.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Clang now available as compiler for all platforms
2+
3+
Our compiler stack per platform generally uses the "default" compiler for that
4+
platform, see e.g. [here](https://conda-forge.org/docs/maintainer/infrastructure/#compilers-and-runtimes).
5+
6+
In practice, this meant that
7+
```
8+
c_compiler:
9+
- gcc # [linux]
10+
- clang # [osx]
11+
- vs2019 # [win]
12+
cxx_compiler:
13+
- gxx # [linux]
14+
- clangxx # [osx]
15+
- vs2019 # [win]
16+
```
17+
was the only possible choice for C/C++ compilers.
18+
19+
Recently, we finished adding preliminary support `clang` / `clangxx` as
20+
C/C++ compilers also on osx and windows, starting from clang 18.
21+
This is still very fresh, so bugs are possible, and we ask not to change
22+
the default compilers on feedstocks unless there are compelling reasons.
23+
24+
In any case, it is now possible to use the following configuration in
25+
`recipe/conda_build_config.yaml`:
26+
```
27+
# please consult @conda-forge/core before doing this
28+
c_compiler:
29+
- clang
30+
c_compiler_version:
31+
- 18
32+
cxx_compiler:
33+
- clangxx
34+
cxx_compiler_version:
35+
- 18
36+
```

0 commit comments

Comments
 (0)