diff options
Diffstat (limited to 'third_party/nix/src/nix-build/nix-build.cc')
-rw-r--r-- | third_party/nix/src/nix-build/nix-build.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/third_party/nix/src/nix-build/nix-build.cc b/third_party/nix/src/nix-build/nix-build.cc index 66947051ba32..a98603f35109 100644 --- a/third_party/nix/src/nix-build/nix-build.cc +++ b/third_party/nix/src/nix-build/nix-build.cc @@ -5,6 +5,7 @@ #include <sstream> #include <vector> +#include <absl/strings/ascii.h> #include <glog/logging.h> #include "affinity.hh" @@ -121,7 +122,7 @@ static void _main(int argc, char** argv) { } args.clear(); for (auto line : lines) { - line = chomp(line); + line = absl::StripTrailingAsciiWhitespace(line); std::smatch match; if (std::regex_match(line, match, std::regex("^#!\\s*nix-shell (.*)$"))) { |