Skip to content

Commit c3e5ce9

Browse files
authored
Fix x86 build with clang-18 (#101650)
* Fix x86 build with clang-18 * Suppress Wsync-alignment * Update x86 pipeline to use clang-18
1 parent 6313ff8 commit c3e5ce9

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

eng/pipelines/common/templates/pipeline-with-resources.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ extends:
6161
ROOTFS_DIR: /crossrootfs/x64
6262

6363
linux_x86:
64-
image: mcr.microsoft.com/dotnet-buildtools/prereqs:azurelinux-3.0-cross-x86-net8.0
64+
image: mcr.microsoft.com/dotnet-buildtools/prereqs:azurelinux-3.0-cross-x86-net9.0
6565
env:
6666
ROOTFS_DIR: /crossrootfs/x86
6767

src/coreclr/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ if(CLR_CMAKE_HOST_UNIX)
206206
# warnings and errors to be suppressed.
207207
# Suppress these warnings here to avoid breaking the build.
208208
add_compile_options($<$<COMPILE_LANG_AND_ID:CXX,Clang,AppleClang>:-Wno-null-arithmetic>)
209+
add_compile_options($<$<COMPILE_LANG_AND_ID:CXX,Clang>:-Wno-sync-alignment>)
209210
add_compile_options($<$<COMPILE_LANG_AND_ID:CXX,GNU>:-Wno-conversion-null>)
210211
add_compile_options($<$<COMPILE_LANG_AND_ID:CXX,GNU>:-Wno-pointer-arith>)
211212

0 commit comments

Comments
 (0)