Define __cpuid{ex} only when there's no builtin one (#73065)
authorAdeel Mujahid <3840695+am11@users.noreply.github.com>
Fri, 29 Jul 2022 16:34:00 +0000 (19:34 +0300)
committerGitHub <noreply@github.com>
Fri, 29 Jul 2022 16:34:00 +0000 (09:34 -0700)
commit992cf8c97cc71d4ca9a0a11e6604a6716ed4cefc
tree9711e4bf850ce5da0acc9d4a45317bd88501618c
parent44f1c1ec1eed7662d47dfbbf506d55d0152029eb
Define __cpuid{ex} only when there's no builtin one (#73065)

* Define __cpuid{ex} only when there's no builtin one

Fix clang 15 RC1 build: `error: definition of builtin function '__cpuid'`

* Add clang-15 autodetection
eng/common/native/init-compiler.sh
src/coreclr/nativeaot/Runtime/unix/PalRedhawkUnix.cpp
src/coreclr/vm/amd64/unixstubs.cpp