Skip to content

Commit

Permalink
Fix x86 build with clang-18 (dotnet#101650)
Browse files Browse the repository at this point in the history
* Fix x86 build with clang-18

* Suppress Wsync-alignment

* Update x86 pipeline to use clang-18
  • Loading branch information
am11 authored and michaelgsharp committed May 8, 2024
1 parent 7789507 commit 3c21537
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion eng/pipelines/common/templates/pipeline-with-resources.yml
Expand Up @@ -61,7 +61,7 @@ extends:
ROOTFS_DIR: /crossrootfs/x64

linux_x86:
image: mcr.microsoft.com/dotnet-buildtools/prereqs:azurelinux-3.0-cross-x86-net8.0
image: mcr.microsoft.com/dotnet-buildtools/prereqs:azurelinux-3.0-cross-x86-net9.0
env:
ROOTFS_DIR: /crossrootfs/x86

Expand Down
1 change: 1 addition & 0 deletions src/coreclr/CMakeLists.txt
Expand Up @@ -206,6 +206,7 @@ if(CLR_CMAKE_HOST_UNIX)
# warnings and errors to be suppressed.
# Suppress these warnings here to avoid breaking the build.
add_compile_options($<$<COMPILE_LANG_AND_ID:CXX,Clang,AppleClang>:-Wno-null-arithmetic>)
add_compile_options($<$<COMPILE_LANG_AND_ID:CXX,Clang>:-Wno-sync-alignment>)
add_compile_options($<$<COMPILE_LANG_AND_ID:CXX,GNU>:-Wno-conversion-null>)
add_compile_options($<$<COMPILE_LANG_AND_ID:CXX,GNU>:-Wno-pointer-arith>)

Expand Down

0 comments on commit 3c21537

Please sign in to comment.