Skip to content

Commit 6d1cb6c

Browse files
r-barnesmeta-codesync[bot]
authored andcommitted
Use clang-19 for rebalancer OSS Linux builds
Summary: - Create clang19 manifest with debs for Ubuntu 24.04 - Add clang19 as a Linux dependency for rebalancer, replacing gcc14 (which only has packages for CentOS Stream 9) in the general dependencies - Set CMAKE_C_COMPILER=clang-19 and CMAKE_CXX_COMPILER=clang++-19 for Linux Reviewed By: sahilsd Differential Revision: D96800042 fbshipit-source-id: b27714100e45ab6a5cfadc5e949051035ab635e5
1 parent a1fa0ac commit 6d1cb6c

2 files changed

Lines changed: 18 additions & 4 deletions

File tree

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[manifest]
2+
name = clang19
3+
4+
[debs.os=linux]
5+
clang-19
6+
7+
[rpms.os=linux]
8+
clang

build/fbcode_builder/manifests/rebalancer

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,18 @@ fbthrift
2020
fizz
2121
fmt
2222
folly
23-
gcc14
2423
gflags
2524
glog
2625
googletest
2726
xxhash
2827

28+
[dependencies.os=linux]
29+
clang19
30+
31+
[cmake.defines.os=linux]
32+
CMAKE_C_COMPILER=clang-19
33+
CMAKE_CXX_COMPILER=clang++-19
34+
2935
[cmake.defines.os=darwin]
3036
REBALANCER_USE_SCIP=0
3137

@@ -38,8 +44,8 @@ fbcode/algopt/rebalancer = algopt/rebalancer
3844
fbcode/algopt/lp = algopt/lp
3945

4046
[dependencies.all(distro=centos_stream,distro_vers=9)]
41-
gcc14
47+
clang19
4248

4349
[cmake.defines.all(distro=centos_stream,distro_vers=9)]
44-
CMAKE_C_COMPILER=/opt/rh/gcc-toolset-14/root/usr/bin/gcc
45-
CMAKE_CXX_COMPILER=/opt/rh/gcc-toolset-14/root/usr/bin/g++
50+
CMAKE_C_COMPILER=clang-19
51+
CMAKE_CXX_COMPILER=clang++-19

0 commit comments

Comments
 (0)