autotools: Fix lint target

This used "argparse" to parse the args, which broke since CXXFLAGS
contained options.

Instead we pass "--all" before any other arguments, and then stop
argparse at nonoptions.
This commit is contained in:
Fabian Homborg 2019-02-25 15:09:54 +01:00
parent 2c3214cabd
commit 5e98259d95
2 changed files with 2 additions and 2 deletions

View File

@ -655,7 +655,7 @@ depend: | show-MKDIR_P
lint:
$v build_tools/lint.fish "$(CXX)" $(CXXFLAGS) $(CPPFLAGS)
lint-all:
$v build_tools/lint.fish "$(CXX)" --all $(CXXFLAGS) $(CPPFLAGS)
$v build_tools/lint.fish --all "$(CXX)" $(CXXFLAGS) $(CPPFLAGS)
.PHONY: lint lint-all
#

View File

@ -13,7 +13,7 @@ set all no
set kernel_name (uname -s)
set machine_type (uname -m)
argparse a/all -- $argv
argparse -s a/all -- $argv
set -q argv[1]; and set -gx CXX $argv[1]
set -e argv[1]