Darwin: introduce a global override for debug prefix map entries.
authorAdrian Prantl <aprantl@apple.com>
Tue, 15 Feb 2022 16:23:16 +0000 (08:23 -0800)
committerAdrian Prantl <aprantl@apple.com>
Wed, 16 Feb 2022 16:36:26 +0000 (08:36 -0800)
commit0604d86c07ab8a28b95df689aff4ddd26347f35f
tree22a2fa1a6a04080a45e1f726e668ba8203de309c
parent9a460b848f4f82ccb3e9d59808ef6709aa6e9dc0
Darwin: introduce a global override for debug prefix map entries.

This patch adds a new Darwin clang driver environment variable in the
spirit of RC_DEBUG_OPTIONS, called RC_DEBUG_PREFIX_MAP, which allows a
meta build tool to add one additional -fdebug-prefix-map entry without
the knowledge of the build system.

rdar://85224675

Differential Revision: https://reviews.llvm.org/D119850
clang/include/clang/Driver/ToolChain.h
clang/lib/Driver/ToolChains/Clang.cpp
clang/lib/Driver/ToolChains/Darwin.cpp
clang/lib/Driver/ToolChains/Darwin.h
clang/test/Driver/darwin-debug-prefix-map.c [new file with mode: 0644]
clang/test/Driver/darwin-debug-prefix-map.s [new file with mode: 0644]