Skip to content

Commit 80367bf

Browse files
authored
Support building the repo with clang 20 (#109756)
1 parent 756f7eb commit 80367bf

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

eng/native/configurecompiler.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -620,6 +620,9 @@ if (CLR_CMAKE_HOST_UNIX)
620620

621621
# clang 18.1 supressions
622622
add_compile_options(-Wno-switch-default)
623+
624+
# clang 20 suppressions
625+
add_compile_options($<$<COMPILE_LANGUAGE:CXX>:-Wno-nontrivial-memaccess>)
623626
else()
624627
add_compile_options(-Wno-uninitialized)
625628
add_compile_options(-Wno-strict-aliasing)

src/coreclr/debug/ee/stdafx.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include <stdio.h>
1515
#include <algorithm>
1616
#include <cmath>
17+
#include <common.h>
1718

1819
#include <windows.h>
1920

src/coreclr/vm/common.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@
7373

7474
#include <olectl.h>
7575

76+
#ifdef HOST_AMD64
77+
#include <xmmintrin.h>
78+
#endif
79+
7680
using std::max;
7781
using std::min;
7882

0 commit comments

Comments
 (0)