mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge pull request #81753 from rastogishubham/CompDir6.2
[6.2] Set the Compilation directory when generating the Skeleton CU
This commit is contained in:
11
test/DebugInfo/comp-dir.swift
Normal file
11
test/DebugInfo/comp-dir.swift
Normal file
@@ -0,0 +1,11 @@
|
||||
// RUN: %empty-directory(%t)
|
||||
// RUN: %target-swift-frontend -emit-module-path %t/Globals.swiftmodule %S/Globals.swift
|
||||
// RUN: %target-swift-frontend -c -I %t -primary-file %s -g -parse-as-library -emit-module -emit-object -module-cache-path "./mc" -file-compilation-dir "." -debug-prefix-map "$(pwd)=." -o %t/test.o
|
||||
// RUN: %llvm-dwarfdump %t/test.o | %FileCheck %s
|
||||
|
||||
// CHECK: DW_TAG_compile_unit
|
||||
|
||||
// CHECK: DW_TAG_compile_unit
|
||||
// CHECK-NOT: NULL
|
||||
// CHECK: DW_AT_comp_dir (".")
|
||||
// CHECK-NOT: NULL
|
||||
Reference in New Issue
Block a user