[compiler-rt] [compiler-rt][x86] Don't use assert.h when building without a libc (PR #165384)

via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 30 00:37:45 PDT 2025


================
@@ -21,7 +21,9 @@
 
 #if defined(__GNUC__) || defined(__clang__) || defined(_MSC_VER)
 
+#if defined(__linux__) && __STDC_HOSTED__
----------------
quic-k wrote:

I saw nearby files using __linux__ as the checking macro for assert.h, so I added it
but just __STDC_HOSTED__ should be fine as well

should I remove __linux__?

https://github.com/llvm/llvm-project/pull/165384


More information about the llvm-commits mailing list