mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This flag is based on Clang's -fdebug-prefix-map, which lets the user remap absolute paths in debug info. This is necessary for reproducible builds and allows debugging to work on a different machine than the one that built the code when paths to the source may be different.
10 lines
636 B
Swift
10 lines
636 B
Swift
// RUN: not %target-swiftc_driver -debug-prefix-map old %s 2>&1 | %FileCheck %s -check-prefix CHECK-INVALID
|
|
// RUN: %target-swiftc_driver -### -debug-prefix-map old=new %s 2>&1 | %FileCheck %s -check-prefix CHECK-SIMPLE
|
|
// RUN: %target-swiftc_driver -### -debug-prefix-map old=n=ew %s 2>&1 | %FileCheck %s -check-prefix CHECK-COMPLEX
|
|
// RUN: %target-swiftc_driver -### -debug-prefix-map old= %s 2>&1 | %FileCheck %s -check-prefix CHECK-EMPTY
|
|
|
|
// CHECK-INVALID: error: invalid argument 'old' to -debug-prefix-map
|
|
// CHECK-SIMPLE: debug-prefix-map old=new
|
|
// CHECK-COMPLEX: debug-prefix-map old=n=ew
|
|
// CHECK-EMPTY: debug-prefix-map old=
|