[Openmp-commits] [compiler-rt] [libc] [libcxx] [libcxxabi] [libunwind] [llvm] [openmp] [Runtimes] Introduce variables containing resource dir paths (PR #177953)

Michael Kruse via Openmp-commits openmp-commits at lists.llvm.org
Wed Jan 28 05:40:05 PST 2026


================
@@ -113,5 +113,19 @@ function (get_toolchain_arch_dirname outvar)
   else()
     set(target "${arch}${triple_suffix}")
   endif()
-  set(${outvar} "${target}" PARENT_SCOPE)
+  set("${variable}" "${target}" PARENT_SCOPE)
+endfunction()
+
+
+# Corresponds to Clang's ToolChain::getRuntimePath().
+function (get_toolchain_arch_dirname outvar)
+  string(FIND "${LLVM_TARGET_TRIPLE}" "-" dash_index)
+  string(SUBSTRING "${LLVM_TARGET_TRIPLE}" 0 ${dash_index} triple_cpu)
+  set(arch "${triple_cpu}")
+  if("${arch}" MATCHES "^i.86$")
+    # Android uses i686, but that's remapped at a later stage.
----------------
Meinersbur wrote:

I don not know what "later stage" is, I didn't write that comment. removed it here since it probably refers to something within compiler-rt

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


More information about the Openmp-commits mailing list