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

Saleem Abdulrasool via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 31 08:53:31 PDT 2025


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

Yes, please remove `__linux__`. Using `__STDC_HOSTED__` is reasonable - that indicates we are in a hosted environment (we have libc).

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


More information about the llvm-commits mailing list