mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-05 11:01:13 +02:00
43164: _gcc: fix 'args=' to 'args+=', and update a few options
This commit is contained in:
parent
7facf96950
commit
5f2d265b3a
2 changed files with 11 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2018-07-11 Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>
|
||||||
|
|
||||||
|
* 43164: Completion/Unix/Command/_gcc: fix 'args=' to 'args+=',
|
||||||
|
and update a few options.
|
||||||
|
|
||||||
2018-07-10 Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>
|
2018-07-10 Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>
|
||||||
|
|
||||||
* 43155: Completion/Unix/Command/_gcc: escape : in action for -std
|
* 43155: Completion/Unix/Command/_gcc: escape : in action for -std
|
||||||
|
|
|
@ -339,8 +339,7 @@ h8/300)
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if [[ "$service" = clang* ]]; then
|
if [[ "$service" = clang* ]]; then
|
||||||
args=(
|
args+=(
|
||||||
$args
|
|
||||||
"-flto=-[generate output files suitable for link time optimization]::style:(full thin)"
|
"-flto=-[generate output files suitable for link time optimization]::style:(full thin)"
|
||||||
-emit-llvm
|
-emit-llvm
|
||||||
"-Qunused-arguments[don't emit warning for unused driver arguments]"
|
"-Qunused-arguments[don't emit warning for unused driver arguments]"
|
||||||
|
@ -353,7 +352,7 @@ if [[ "$service" = clang* ]]; then
|
||||||
"-nobuiltininc[Do not search builtin directory for include files]"
|
"-nobuiltininc[Do not search builtin directory for include files]"
|
||||||
)
|
)
|
||||||
else
|
else
|
||||||
args=(
|
args+=(
|
||||||
'-flto=-[Enable link-time optimization]::jobs:'
|
'-flto=-[Enable link-time optimization]::jobs:'
|
||||||
)
|
)
|
||||||
fi
|
fi
|
||||||
|
@ -383,7 +382,6 @@ languages=(
|
||||||
|
|
||||||
# generic options (from --help)
|
# generic options (from --help)
|
||||||
args+=(
|
args+=(
|
||||||
-a -C -H -P -s
|
|
||||||
'-###[print commands to run this compilation]'
|
'-###[print commands to run this compilation]'
|
||||||
'-o:output file:_files -g "^*.(c|h|cc|C|cxx)(-.)"'
|
'-o:output file:_files -g "^*.(c|h|cc|C|cxx)(-.)"'
|
||||||
'-x[Specify the language of the following input files]:input file language:('"$languages"')'
|
'-x[Specify the language of the following input files]:input file language:('"$languages"')'
|
||||||
|
@ -395,6 +393,10 @@ args+=(
|
||||||
'*-A-:define assertion:'
|
'*-A-:define assertion:'
|
||||||
'*-D-:define macro:'
|
'*-D-:define macro:'
|
||||||
'*-U-:undefine macro:'
|
'*-U-:undefine macro:'
|
||||||
|
'-C[do not discard comments during preprocess]'
|
||||||
|
'-CC[do not discard comments, including macro expansion]'
|
||||||
|
'-P[inhibit generation of linkemakers during preprocess]'
|
||||||
|
'-H[print name of each header file used]'
|
||||||
'-E[Preprocess only; do not compile, assemble or link]'
|
'-E[Preprocess only; do not compile, assemble or link]'
|
||||||
'-S[Compile only; do not assemble or link]'
|
'-S[Compile only; do not assemble or link]'
|
||||||
'-c[Compile and assemble, but do not link]'
|
'-c[Compile and assemble, but do not link]'
|
||||||
|
|
Loading…
Reference in a new issue