Bug 1769180 - Reject --disable-new-pass-manager with clang >= 15. r=firefox-build-system-reviewers,andi

Differential Revision: https://phabricator.services.mozilla.com/D147125
This commit is contained in:
Mike Hommey 2022-05-24 08:21:42 +00:00
parent bc89e96a24
commit 655bd32dbd

View File

@ -49,6 +49,8 @@ def pass_manager(enabled, compiler, host, target, pgo, enable_fuzzing, ubsan):
return namespace(flags=["-Xclang", "-flegacy-pass-manager"], enabled=False)
if not enabled:
if compiler.version >= "15.0.0":
die("--disable-new-pass-manager is only supported with clang < 15")
return None
if compiler.version < "9.0.0":
if enabled.origin != "default":