Files
swift-mirror/test/DebugInfo/module-compilation-dir.swift
Richard Howell 198d2ff2ca Pass through file-compilation-dir to the ClangImporter.
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.
2023-10-26 08:38:22 -07:00

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")