nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #35674 from dtzWill/fix/llvm-4-cmdline-help

llvm_4: fix cosmetic issue in help output

(cherry picked from commit 3092659d96fac95993de3309a1b2b0957cd534f6)

authored by

Will Dietz and committed by
Vladimír Čunát
70e1ebe0 69a3a1dc

+42
+39
pkgs/development/compilers/llvm/4/cmdline-help.patch
··· 1 + From c7a9aa3a697c81432786a5583bf973771c7be15e Mon Sep 17 00:00:00 2001 2 + From: Don Hinton <hintonda@gmail.com> 3 + Date: Wed, 12 Jul 2017 01:15:46 +0000 4 + Subject: [PATCH] Fix minor typo introduced in r276404 5 + 6 + Summary: 7 + A space was added between '-' and 'help' when emitting help output. 8 + 9 + See https://reviews.llvm.org/D22621 for details. 10 + 11 + Reviewers: MaggieYi, vsk 12 + 13 + Reviewed By: vsk 14 + 15 + Subscribers: llvm-commits 16 + 17 + Differential Revision: https://reviews.llvm.org/D35283 18 + 19 + git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@307745 91177308-0d34-0410-b5e6-96231b3b80d8 20 + --- 21 + lib/Support/CommandLine.cpp | 2 +- 22 + 1 file changed, 1 insertion(+), 1 deletion(-) 23 + 24 + diff --git a/lib/Support/CommandLine.cpp b/lib/Support/CommandLine.cpp 25 + index 3889902eea5..79defa5c36c 100644 26 + --- a/lib/Support/CommandLine.cpp 27 + +++ b/lib/Support/CommandLine.cpp 28 + @@ -1236,7 +1236,7 @@ bool CommandLineParser::ParseCommandLineOptions(int argc, 29 + << ": Not enough positional command line arguments specified!\n" 30 + << "Must specify at least " << NumPositionalRequired 31 + << " positional argument" << (NumPositionalRequired > 1 ? "s" : "") 32 + - << ": See: " << argv[0] << " - help\n"; 33 + + << ": See: " << argv[0] << " -help\n"; 34 + } 35 + 36 + ErrorParsing = true; 37 + -- 38 + 2.14.0 39 +
+3
pkgs/development/compilers/llvm/4/llvm.nix
··· 78 78 substituteInPlace lib/esan/esan_sideline_linux.cpp \ 79 79 --replace 'struct sigaltstack' 'stack_t' 80 80 ) 81 + '' + # Fix extra space printed in commandline help sometimes, "- help" 82 + '' 83 + patch -p1 -i ${./cmdline-help.patch} 81 84 '' + stdenv.lib.optionalString stdenv.isAarch64 '' 82 85 patch -p0 < ${../aarch64.patch} 83 86 '' + stdenv.lib.optionalString stdenv.hostPlatform.isMusl ''