Commit e69bd745 authored by Mitchell Hentges's avatar Mitchell Hentges
Browse files

Bug 1680306: Don't set LLVM_PROFDATA for non-clang PGO builds...

Bug 1680306: Don't set LLVM_PROFDATA for non-clang PGO builds r=firefox-build-system-reviewers,dmajor

LLVM_PROFDATA is only relevant when LLVM is being used.

Differential Revision: https://phabricator.services.mozilla.com/D99116
parent 335e125b
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -126,6 +126,7 @@ class Build(MachCommandBase):
                return status

            pgo_env = os.environ.copy()
            if instr.config_environment.substs.get("CC_TYPE") in ("clang", "clang-cl"):
                pgo_env["LLVM_PROFDATA"] = instr.config_environment.substs.get(
                    "LLVM_PROFDATA"
                )