diff options
author | David Majnemer <david.majnemer@gmail.com> | 2015-12-21 22:09:34 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2015-12-21 22:09:34 +0000 |
commit | 2b9349db3888ee3df30382d2e647ead34adb5666 (patch) | |
tree | 66bd7b79661df35de2b2dbb65fe883eab08ee33f /clang/test/Driver/cl-options.c | |
parent | 03e2cc300747a4cfbe1cd05cc39ca247bddcb3f4 (diff) | |
download | bcm5719-llvm-2b9349db3888ee3df30382d2e647ead34adb5666.tar.gz bcm5719-llvm-2b9349db3888ee3df30382d2e647ead34adb5666.zip |
[clang-cl] Add support for /Brepro
The /Brepro flag controls whether or not the compiler should embed
timestamps into the object file. Object files which do not embed
timestamps are not suitable for incremental linking but are suitable for
hermetic build systems and staged self-hosts of clang.
A normal clang spelling of this flag has been added,
-mincremental-linker-compatible.
llvm-svn: 256204
Diffstat (limited to 'clang/test/Driver/cl-options.c')
-rw-r--r-- | clang/test/Driver/cl-options.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/Driver/cl-options.c b/clang/test/Driver/cl-options.c index 4ad1612bbaf..c23aefea146 100644 --- a/clang/test/Driver/cl-options.c +++ b/clang/test/Driver/cl-options.c @@ -376,6 +376,15 @@ // Z7: "-gcodeview" // Z7: "-debug-info-kind=line-tables-only" +// RUN: %clang_cl /c -### -- %s 2>&1 | FileCheck -check-prefix=BreproDefault %s +// BreproDefault: "-mincremental-linker-compatible" + +// RUN: %clang_cl /Brepro- /Brepro /c '-###' -- %s 2>&1 | FileCheck -check-prefix=Brepro %s +// Brepro: "-mincremental-linker-compatible" + +// RUN: %clang_cl /Brepro /Brepro- /c '-###' -- %s 2>&1 | FileCheck -check-prefix=Brepro_ %s +// Brepro_-NOT: "-mincremental-linker-compatible" + // This test was super sneaky: "/Z7" means "line-tables", but "-gdwarf" occurs // later on the command line, so it should win. Interestingly the cc1 arguments // came out right, but had wrong semantics, because an invariant assumed by |