mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This change passes through the -file-compilation-dir flag to the ClangImporter instance as -ffile-compilation-dir. When used in conjunction with https://github.com/llvm/llvm-project/pull/67744 this will allow for setting the compilation directory of pcm files using the -file-compilation-dir flag.
7 lines
277 B
Swift
7 lines
277 B
Swift
// Emit the explicit module.
|
|
// RUN: %empty-directory(%t)
|
|
// RUN: %target-swift-emit-pcm -g -module-name Macro -o %t/Macro.pcm -file-compilation-dir /compdir %S/Inputs/module.modulemap
|
|
// RUN: %llvm-dwarfdump %t/Macro.pcm | %FileCheck %s
|
|
|
|
// CHECK: DW_AT_comp_dir ("/compdir")
|