Skip to content

Commit e76e0b4

Browse files
authored
Merge pull request #2161 from h-vetinari/clang
Add announcement for clang support across platforms
2 parents 661f14b + 2f12df3 commit e76e0b4

File tree

3 files changed

+42
-1
lines changed

3 files changed

+42
-1
lines changed

docusaurus.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,10 @@ const config = {
260260
from: "/blog/posts/2023-07-13-installer-security-fixes/",
261261
to: "/blog/2023/07/13/installer-security-fixes/",
262262
},
263+
{
264+
from: "/news/2024/04/09/clang-everywhere/",
265+
to: "/news/2024/04/30/clang-everywhere/",
266+
},
263267
/* Docs redirects */
264268
{
265269
from: "/docs/user/announcements.html",

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: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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+
```yaml
9+
c_compiler:
10+
- gcc # [linux]
11+
- clang # [osx]
12+
- vs2019 # [win]
13+
cxx_compiler:
14+
- gxx # [linux]
15+
- clangxx # [osx]
16+
- vs2019 # [win]
17+
```
18+
19+
was the only possible choice for C/C++ compilers.
20+
21+
Recently, we finished adding preliminary support `clang` / `clangxx` as
22+
C/C++ compilers also on linux and windows, starting from clang 18.
23+
This is still very fresh, so bugs are possible, and we ask not to change
24+
the default compilers on feedstocks unless there are compelling reasons.
25+
26+
In any case, it is now possible to use the following configuration in
27+
`recipe/conda_build_config.yaml` (note the lack of platform selectors):
28+
29+
```yaml
30+
c_compiler:
31+
- clang
32+
c_compiler_version:
33+
- 18
34+
cxx_compiler:
35+
- clangxx
36+
cxx_compiler_version:
37+
- 18
38+
```

0 commit comments

Comments
 (0)