mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-22 14:23:38 +08: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
|
@ -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 New Issue
Block a user