diff --git a/eng/native/configurecompiler.cmake b/eng/native/configurecompiler.cmake index c5fa2f7db88305..d949e9ce89b58e 100644 --- a/eng/native/configurecompiler.cmake +++ b/eng/native/configurecompiler.cmake @@ -620,6 +620,9 @@ if (CLR_CMAKE_HOST_UNIX) # clang 18.1 supressions add_compile_options(-Wno-switch-default) + + # clang 20 suppressions + add_compile_options($<$:-Wno-nontrivial-memaccess>) else() add_compile_options(-Wno-uninitialized) add_compile_options(-Wno-strict-aliasing) diff --git a/src/coreclr/debug/ee/stdafx.h b/src/coreclr/debug/ee/stdafx.h index 7a93a1d8e25806..4a07384047d0a7 100644 --- a/src/coreclr/debug/ee/stdafx.h +++ b/src/coreclr/debug/ee/stdafx.h @@ -14,6 +14,7 @@ #include #include #include +#include #include diff --git a/src/coreclr/vm/common.h b/src/coreclr/vm/common.h index 19a5384433cf15..ce8afdd4d2808e 100644 --- a/src/coreclr/vm/common.h +++ b/src/coreclr/vm/common.h @@ -73,6 +73,10 @@ #include +#ifdef HOST_AMD64 +#include +#endif + using std::max; using std::min;