This flag implies `-ivfsoverlay`, and additionally passes the same argument to the linker if it supports it. At present the only linker which does is lld-link, so this functionality has only been added to the MSVC toolchain. Additionally this option has been made a CoreOption so that clang-cl can use it without `-Xclang` Differential Revision: https://reviews.llvm.org/D141808
9 lines
372 B
C
9 lines
372 B
C
// RUN: %clang -ivfsoverlay foo.h -### %s 2>&1 | FileCheck %s
|
|
// CHECK: "-ivfsoverlay" "foo.h"
|
|
|
|
// RUN: %clang --vfsoverlay foo.h -### %s 2>&1 | FileCheck %s --check-prefix=CHECK2
|
|
// CHECK2: "--vfsoverlay" "foo.h"
|
|
|
|
// RUN: not %clang -ivfsoverlay foo.h %s 2>&1 | FileCheck -check-prefix=CHECK-MISSING %s
|
|
// CHECK-MISSING: virtual filesystem overlay file 'foo.h' not found
|