mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
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:
parent
2c3214cabd
commit
5e98259d95
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
#
|
||||
|
|
|
@ -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]
|
||||
|
||||
|
|
Loading…
Reference in a new issue