[clang] [PS5] Adopt new compiler-rt naming scheme for the profile library. (PR #99862)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 23 02:07:21 PDT 2024
https://github.com/goussepi updated https://github.com/llvm/llvm-project/pull/99862
>From f2bbdbd5507f5d29e2d0877df135bf1f28bf753b Mon Sep 17 00:00:00 2001
From: Pierre Gousseau <pierre.gousseau at sony.com>
Date: Mon, 22 Jul 2024 10:49:08 +0000
Subject: [PATCH] [PS5] Adopt new compiler-rt naming scheme for the profile
library
Changes the driver to look for libclang_rt.profile_nosubmission.a
instead of libclang_rt.profile-x86_64_nosubmission.a
---
clang/lib/Driver/ToolChains/PS4CPU.h | 2 +-
clang/test/Driver/ps4-ps5-runtime-flags.c | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/clang/lib/Driver/ToolChains/PS4CPU.h b/clang/lib/Driver/ToolChains/PS4CPU.h
index fee80e77462f3..b248d1c256129 100644
--- a/clang/lib/Driver/ToolChains/PS4CPU.h
+++ b/clang/lib/Driver/ToolChains/PS4CPU.h
@@ -163,7 +163,7 @@ class LLVM_LIBRARY_VISIBILITY PS5CPU : public PS4PS5Base {
llvm::opt::ArgStringList &CmdArgs, const char *Prefix,
const char *Suffix) const override;
const char *getProfileRTLibName() const override {
- return "libclang_rt.profile-x86_64_nosubmission.a";
+ return "libclang_rt.profile_nosubmission.a";
}
protected:
diff --git a/clang/test/Driver/ps4-ps5-runtime-flags.c b/clang/test/Driver/ps4-ps5-runtime-flags.c
index e75ba97948d23..4b00aead6fe5c 100644
--- a/clang/test/Driver/ps4-ps5-runtime-flags.c
+++ b/clang/test/Driver/ps4-ps5-runtime-flags.c
@@ -40,5 +40,5 @@
// RUN: %clang -target x86_64-sie-ps5 -fcs-profile-generate %s -### 2>&1 | FileCheck --check-prefix=CHECK-PS5-PROFILE %s
// RUN: %clang -target x86_64-sie-ps5 -fcs-profile-generate -fno-profile-generate %s -### 2>&1 | FileCheck --check-prefix=CHECK-PS5-NO-PROFILE %s
//
-// CHECK-PS5-PROFILE: "--dependent-lib=libclang_rt.profile-x86_64_nosubmission.a"
-// CHECK-PS5-NO-PROFILE-NOT: "--dependent-lib=libclang_rt.profile-x86_64_nosubmission.a"
+// CHECK-PS5-PROFILE: "--dependent-lib=libclang_rt.profile_nosubmission.a"
+// CHECK-PS5-NO-PROFILE-NOT: "--dependent-lib=libclang_rt.profile_nosubmission.a"
More information about the cfe-commits
mailing list