From 490d34a5e00074c55ed3442dc53124752916348a Mon Sep 17 00:00:00 2001 From: TB Schardl Date: Sun, 3 Mar 2024 11:49:56 -0500 Subject: [PATCH] [Darwin] Use per-architecture LLVM bitcode files for the OpenCilk runtime. --- clang/lib/Driver/ToolChains/Darwin.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/clang/lib/Driver/ToolChains/Darwin.cpp b/clang/lib/Driver/ToolChains/Darwin.cpp index dc6f8cdeeac0..81e473a487a6 100644 --- a/clang/lib/Driver/ToolChains/Darwin.cpp +++ b/clang/lib/Driver/ToolChains/Darwin.cpp @@ -3426,6 +3426,8 @@ void DarwinClang::AddOpenCilkABIBitcode(const ArgList &Args, : "libopencilk-abi"); BitcodeFilename += "_"; BitcodeFilename += getOSLibraryNameSuffix(); + BitcodeFilename += "-"; + BitcodeFilename += getMachOArchName(Args); BitcodeFilename += ".bc"; for (auto RuntimePath : getOpenCilkRuntimePaths(Args)) {