File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
RUN: dsymutil -oso-prepend-path %p/.. %p/../Inputs/swift-ast.macho.x86_64 -o %T/swift-ast.dSYM -verbose -no-swiftmodule-timestamp | FileCheck %s --check-prefix=DSYMUTIL
2
+ RUN: dsymutil -oso-prepend-path %p/.. %p/../Inputs/swift-ast.macho.x86_64 -o %T/swift-ast.dSYM -verbose | FileCheck %s --check-prefix=DSYMUTIL
2
3
RUN: llvm-readobj --sections --section-data %T/swift-ast.dSYM/Contents/Resources/DWARF/swift-ast.macho.x86_64 | FileCheck %s --check-prefix=READOBJ
3
4
RUN: llvm-dwarfdump --show-section-sizes %T/swift-ast.dSYM/Contents/Resources/DWARF/swift-ast.macho.x86_64 | FileCheck %s --check-prefix=DWARFDUMP
4
5
@@ -11,6 +12,7 @@ Compiled with:
11
12
12
13
DSYMUTIL: filename:{{.*}}swift-ast.swiftmodule
13
14
DSYMUTIL-NOT: The file was not recognized as a valid object file
15
+ DSYMUTIL-NOT: timestamp mismatch
14
16
DSYMUTIL: DEBUG MAP OBJECT:{{.*}}swift-ast.swiftmodule
15
17
16
18
READOBJ: Name:{{.*}}__swift_ast
@@ -19,8 +21,5 @@ READOBJ-NEXT: |.|
19
21
20
22
DWARFDUMP: __swift_ast
21
23
22
- RUN: dsymutil -oso-prepend-path %p/.. %p/../Inputs/swift-ast.macho.x86_64 -no-output -verbose 2>&1 | FileCheck %s --check-prefix=TIMESTAMP
23
- TIMESTAMP: warning: {{.*}}/swift-ast.swiftmodule: timestamp mismatch between swift interface file ({{.*}}) and debug map ({{.*}})
24
-
25
24
RUN: dsymutil -s %T/swift-ast.dSYM/Contents/Resources/DWARF/swift-ast.macho.x86_64 | FileCheck %s --check-prefix=NAST
26
25
NAST-NOT: N_AST
Original file line number Diff line number Diff line change @@ -414,11 +414,12 @@ bool DwarfLinkerForBinary::link(const DebugMap &Map) {
414
414
auto ModificationTime =
415
415
std::chrono::time_point_cast<std::chrono::seconds>(
416
416
Stat.getLastModificationTime ());
417
- if (ModificationTime != Obj->getTimestamp ()) {
417
+ if (Obj->getTimestamp () != sys::TimePoint<>() &&
418
+ ModificationTime != Obj->getTimestamp ()) {
418
419
// Not using the helper here as we can easily stream TimePoint<>.
419
420
WithColor::warning ()
420
421
<< File << " : timestamp mismatch between swift interface file ("
421
- << sys::TimePoint<>(Obj-> getTimestamp () ) << " ) and debug map ("
422
+ << sys::TimePoint<>(ModificationTime ) << " ) and debug map ("
422
423
<< sys::TimePoint<>(Obj->getTimestamp ()) << " )\n " ;
423
424
continue ;
424
425
}
You can’t perform that action at this time.
0 commit comments