Skip to content

Commit 8e2d203

Browse files
committed
[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
1 parent c675a58 commit 8e2d203

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

clang/lib/Driver/ToolChains/PS4CPU.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ class LLVM_LIBRARY_VISIBILITY PS5CPU : public PS4PS5Base {
163163
llvm::opt::ArgStringList &CmdArgs, const char *Prefix,
164164
const char *Suffix) const override;
165165
const char *getProfileRTLibName() const override {
166-
return "libclang_rt.profile-x86_64_nosubmission.a";
166+
return "libclang_rt.profile_nosubmission.a";
167167
}
168168

169169
protected:

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

Lines changed: 2 additions & 2 deletions
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)