[compiler-rt] [compiler-rt][profile] Add support for LLVM profile for Haiku (PR #107575)

Petr Hosek via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 4 23:24:43 PST 2024


=?utf-8?q?Jérôme?= Duval <jerome.duval at gmail.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/107575 at github.com>


================
@@ -37,7 +37,11 @@ check_c_compiler_flag(-nodefaultlibs C_SUPPORTS_NODEFAULTLIBS_FLAG)
 if (C_SUPPORTS_NODEFAULTLIBS_FLAG)
   set(CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS} -nodefaultlibs")
   if (COMPILER_RT_HAS_LIBC)
-    list(APPEND CMAKE_REQUIRED_LIBRARIES c)
+    if (HAIKU)
+      list(APPEND CMAKE_REQUIRED_LIBRARIES root)
+    else ()
+      list(APPEND CMAKE_REQUIRED_LIBRARIES c)
+    endif ()
----------------
petrhosek wrote:

```suggestion
    if (HAIKU)
      list(APPEND CMAKE_REQUIRED_LIBRARIES root)
    else()
      list(APPEND CMAKE_REQUIRED_LIBRARIES c)
    endif()
```

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


More information about the llvm-commits mailing list