Skip to content

Commit

Permalink
Bugfix: ParseCFlagsFromMakeOutput was never being called (#3574)
Browse files Browse the repository at this point in the history
Previously, the make output was never being parsed, even when the
`c_parse_makefile` option was set.
  • Loading branch information
hugomg authored Feb 6, 2021
1 parent 8beb67b commit 77c0348
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/ale/c.vim
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ function! ale#c#GetCFlags(buffer, output) abort
endif
endif

if s:CanParseMakefile(a:buffer) && !empty(a:output) && !empty(l:cflags)
if empty(l:cflags) && s:CanParseMakefile(a:buffer) && !empty(a:output)
let l:cflags = ale#c#ParseCFlagsFromMakeOutput(a:buffer, a:output)
endif

Expand Down

0 comments on commit 77c0348

Please sign in to comment.