[libc-commits] [libc] [libc] Add osutils for Windows and make libc and its tests build on Windows target (PR #104676)

Sirui Mu via libc-commits libc-commits at lists.llvm.org
Thu Sep 5 07:22:52 PDT 2024


================
@@ -35,7 +35,7 @@
 #endif // UINT64_MAX
 
 // int128 / uint128 support
-#if defined(__SIZEOF_INT128__)
+#if defined(__SIZEOF_INT128__) && !defined(LIBC_TARGET_OS_IS_WINDOWS)
----------------
Lancern wrote:

Well clang-cl actually supports int128 types, but it emits calls into compiler-rt functions (such as `__udivti3` and `__umodti3`) to handle int128 arithmetics, which are not available in libc currently on Windows. So we disable this for now.

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


More information about the libc-commits mailing list