From: Nico Weber Date: Tue, 23 Aug 2016 19:32:02 +0000 (+0000) Subject: clang-cl: Make /Brepro actually work. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=928776127810eab5896c5024ffa4866f41756622;p=clang clang-cl: Make /Brepro actually work. /Brepro means we want reproducible builds, i.e. we _don't_ want the timestamp that's needed to be compatible with the incremental linker. https://reviews.llvm.org/D23805 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@279555 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Driver/CLCompatOptions.td b/include/clang/Driver/CLCompatOptions.td index 864a3489c5..961a117bae 100644 --- a/include/clang/Driver/CLCompatOptions.td +++ b/include/clang/Driver/CLCompatOptions.td @@ -54,10 +54,10 @@ class CLRemainingArgsJoined : Option<["/", "-"], name, def _SLASH_Brepro : CLFlag<"Brepro">, HelpText<"Emit an object file which can be reproduced over time">, - Alias; + Alias; def _SLASH_Brepro_ : CLFlag<"Brepro-">, HelpText<"Emit an object file which cannot be reproduced over time">, - Alias; + Alias; def _SLASH_C : CLFlag<"C">, HelpText<"Don't discard comments when preprocessing">, Alias; def _SLASH_c : CLFlag<"c">, HelpText<"Compile only">, Alias; diff --git a/test/Driver/cl-options.c b/test/Driver/cl-options.c index 3e207f2c95..98548d7f3d 100644 --- a/test/Driver/cl-options.c +++ b/test/Driver/cl-options.c @@ -437,10 +437,10 @@ // BreproDefault: "-mincremental-linker-compatible" // RUN: %clang_cl /Brepro- /Brepro /c '-###' -- %s 2>&1 | FileCheck -check-prefix=Brepro %s -// Brepro: "-mincremental-linker-compatible" +// Brepro-NOT: "-mincremental-linker-compatible" // RUN: %clang_cl /Brepro /Brepro- /c '-###' -- %s 2>&1 | FileCheck -check-prefix=Brepro_ %s -// Brepro_-NOT: "-mincremental-linker-compatible" +// Brepro_: "-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