[libc-commits] [compiler-rt] [libc] [compiler-rt][libc][GPU] Fix 7 builtin unit test build failure for spirv64 targets (PR #236324)
via libc-commits
libc-commits at lists.llvm.org
Thu Oct 29 22:53:21 PDT 2026
================
@@ -1,4 +1,4 @@
-// RUN: %clang_builtins %s %librt -lm -o %t && %run %t
+// RUN: %clang_builtins %s %librt %libm -o %t && %run %t
----------------
jinge90 wrote:
Hi, @jhuber6
I have included '-lm' in %librt for ELF based targets, the spirv64 targets will use libm.bc and for other targets such as MSVC, Haiku, Darwin... the '-lm' is removed since these platforms requires their own system library to provide libm functionalities. For MSVC, it is MSVC CRT lib, for Dawrin, it is libSystem, for Haiku, it is libroot.
Could you help review again?
Thanks very much.
https://github.com/llvm/llvm-project/pull/236324
More information about the libc-commits
mailing list