mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-29 03:36:06 +00:00

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
7 lines
332 B
ArmAsm
7 lines
332 B
ArmAsm
// RUN: env RC_DEBUG_PREFIX_MAP=old=new \
|
|
// RUN: %clang -target arm64-apple-darwin -### -c -g %s 2>&1 | FileCheck %s
|
|
// RUN: env RC_DEBUG_PREFIX_MAP=illegal \
|
|
// RUN: %clang -target arm64-apple-darwin -### -c -g %s 2>&1 | FileCheck %s --check-prefix=ERR
|
|
// CHECK: "-fdebug-prefix-map=old=new"
|
|
// ERR: invalid argument 'illegal'
|