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)) {