Skip to content

Commit f423547

Browse files
committed
enable clang abi compat
1 parent f34c2e5 commit f423547

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

ci/cloudbuild/dockerfiles/fedora-latest-cmake.Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,12 @@ RUN curl -fsSL https://distfiles.ariadne.space/pkgconf/pkgconf-2.2.0.tar.gz | \
6767
# set the search path.
6868
ENV PKG_CONFIG_PATH=/usr/local/lib64/pkgconfig:/usr/local/lib/pkgconfig:/usr/lib64/pkgconfig
6969

70+
# In order to work around https://github.com/llvm/llvm-project/issues/102443 we set
71+
# these compiler env vars so that all our dependencies are built the same way.
72+
ENV CC="clang"
73+
ENV CXX="clang++"
74+
ENV CXXFLAGS="-fclang-abi-compat=17"
75+
7076
# We disable the inline namespace because otherwise Abseil LTS updates break our
7177
# `check-api` build.
7278
WORKDIR /var/tmp/build
@@ -190,6 +196,7 @@ RUN curl -fsSL https://github.com/googleapis/google-cloud-cpp/archive/v2.33.0.ta
190196
cmake \
191197
-DCMAKE_BUILD_TYPE=Release \
192198
-DCMAKE_CXX_STANDARD=17 \
199+
-DGOOGLE_CLOUD_CPP_ENABLE_CLANG_ABI_COMPAT_17=ON \
193200
-DBUILD_SHARED_LIBS=yes \
194201
-DGOOGLE_CLOUD_CPP_ENABLE="bigquerycontrol,bigquery" \
195202
-GNinja -S . -B cmake-out && \

0 commit comments

Comments
 (0)