[libc-commits] [compiler-rt] [libc] [compiler-rt][libc][GPU] Fix 7 builtin unit test build failure for spirv64 targets (PR #236324)

Joseph Huber via libc-commits libc-commits at lists.llvm.org
Thu Oct 29 08:53:59 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
----------------
jhuber6 wrote:

Curious if we should just include `-lm` in the `%librt` expansion, mostly this is just GNU legacy that doesn't implicitly link `-lm` for some reason. This would also go away if we just ported everything to C++ as was discussed in this year's development meeting.

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


More information about the libc-commits mailing list