Skip to content

Commit b5fb7b2

Browse files
authored
[PS5] Adopt new compiler-rt naming scheme for the profile library. (llvm#99862)
Changes the driver to look for libclang_rt.profile_nosubmission.a instead of libclang_rt.profile-x86_64_nosubmission.a
1 parent 10c6d63 commit b5fb7b2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

clang/lib/Driver/ToolChains/PS4CPU.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ class LLVM_LIBRARY_VISIBILITY PS5CPU : public PS4PS5Base {
179179
llvm::opt::ArgStringList &CmdArgs, const char *Prefix,
180180
const char *Suffix) const override;
181181
const char *getProfileRTLibName() const override {
182-
return "libclang_rt.profile-x86_64_nosubmission.a";
182+
return "libclang_rt.profile_nosubmission.a";
183183
}
184184

185185
protected:

clang/test/Driver/ps4-ps5-runtime-flags.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,5 @@
4040
// RUN: %clang -target x86_64-sie-ps5 -fcs-profile-generate %s -### 2>&1 | FileCheck --check-prefix=CHECK-PS5-PROFILE %s
4141
// RUN: %clang -target x86_64-sie-ps5 -fcs-profile-generate -fno-profile-generate %s -### 2>&1 | FileCheck --check-prefix=CHECK-PS5-NO-PROFILE %s
4242
//
43-
// CHECK-PS5-PROFILE: "--dependent-lib=libclang_rt.profile-x86_64_nosubmission.a"
44-
// CHECK-PS5-NO-PROFILE-NOT: "--dependent-lib=libclang_rt.profile-x86_64_nosubmission.a"
43+
// CHECK-PS5-PROFILE: "--dependent-lib=libclang_rt.profile_nosubmission.a"
44+
// CHECK-PS5-NO-PROFILE-NOT: "--dependent-lib=libclang_rt.profile_nosubmission.a"

0 commit comments

Comments
 (0)