Bug 1724372 - Simplify the handling of compiler wrappers. r=firefox-build-system-reviewers,andi

As we don't do subconfigures anymore, we don't need to remove redundant
compiler wrappers anymore.

Differential Revision: https://phabricator.services.mozilla.com/D121942
This commit is contained in:
Mike Hommey 2021-08-07 21:36:42 +00:00
Родитель c82b3f9fe1
Коммит 8000090ec7
1 изменённых файлов: 1 добавлений и 7 удалений

Просмотреть файл

@ -1102,13 +1102,7 @@ def compiler(
wrapper = list(compiler_wrapper or ())
flags = list(sysroot_flags or ())
if provided_compiler:
provided_wrapper = list(provided_compiler.wrapper)
# When doing a subconfigure, the compiler is set by old-configure
# and it contains the wrappers from --with-compiler-wrapper and
# --with-ccache.
if provided_wrapper[: len(wrapper)] == wrapper:
provided_wrapper = provided_wrapper[len(wrapper) :]
wrapper.extend(provided_wrapper)
wrapper.extend(provided_compiler.wrapper)
flags.extend(provided_compiler.flags)
info = check_compiler(wrapper + [compiler] + flags, language, host_or_target)