Bug 1838129 - Partially revert clang change that breaks our mac PGO/LTO builds with lld. r=firefox-build-system-reviewers,ahochheiden

See https://reviews.llvm.org/D138451#4416128

Differential Revision: https://phabricator.services.mozilla.com/D180765
This commit is contained in:
Mike Hommey 2023-06-13 20:32:48 +00:00
parent c1c8de2562
commit 6084037217
3 changed files with 15 additions and 0 deletions

View File

@ -5,6 +5,7 @@
"unpoison-thread-stacks_clang_10.patch",
"downgrade-mangling-error_clang_12.patch",
"fuzzing_ccov_build_clang_12.patch",
"partial-revert-llvmorg-16-init-17151-gaa0883b59ae1.patch",
"partial-revert-llvmorg-16-init-15775-g1ae7d83803e4.patch",
"revert-llvmorg-16-init-11301-g163bb6d64e5f.patch",
"revert-llvmorg-16-init-7598-g54bfd0484615.patch",

View File

@ -7,6 +7,7 @@
"fuzzing_ccov_build_clang_12.patch",
"partial-revert-llvmorg-17-init-7686-g244be0b0de19.patch",
"revert-llvmorg-17-init-4120-g02e8eb1a438b.patch",
"partial-revert-llvmorg-16-init-17151-gaa0883b59ae1.patch",
"partial-revert-llvmorg-16-init-15775-g1ae7d83803e4_clang_17.patch",
"revert-llvmorg-16-init-11301-g163bb6d64e5f_clang_17.patch",
"revert-llvmorg-16-init-7598-g54bfd0484615.patch",

View File

@ -0,0 +1,13 @@
diff --git a/lld/MachO/LTO.cpp b/lld/MachO/LTO.cpp
index 2f5e9d06f396..7fbb41bef53d 100644
--- a/lld/MachO/LTO.cpp
+++ b/lld/MachO/LTO.cpp
@@ -65,8 +65,6 @@ static lto::Config createConfig() {
pm.add(createObjCARCContractPass());
};
- c.AlwaysEmitRegularLTOObj = !config->ltoObjPath.empty();
-
c.TimeTraceEnabled = config->timeTraceEnabled;
c.TimeTraceGranularity = config->timeTraceGranularity;
c.OptLevel = config->ltoo;