mirror of
https://github.com/curl/curl.git
synced 2026-07-30 16:18:02 +03:00
GHA/linux: build out-of-tree, make autotools tidy target support it
To sync with the rest of core workflows. Also fix the `tidy` (clang-tidy) target in autotools to support out-of-tree builds: ``` clang-tidy slist_wc.c terminal.c tool_bname.c [...] var.c tool_hugehelp.c tool_ca_embed.c -quiet --warnings-as-errors=* -checks=-clang-analyzer-security.insecureAPI.strcpy,-clang-analyzer-optin.performance.Padding,-clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling,-clang-analyzer-valist.Uninitialized -- -I../../include -I../lib -I../src -I../../lib -I../../src -DBUILDING_CURL -DUSE_MANUAL -D_GNU_SOURCE -DHAVE_CONFIG_H [1/45] Processing file /home/runner/work/curl/curl/bld/src/slist_wc.c. Error while processing /home/runner/work/curl/curl/bld/src/slist_wc.c. [2/45] Processing file /home/runner/work/curl/curl/bld/src/terminal.c. Error while processing /home/runner/work/curl/curl/bld/src/terminal.c. [3/45] Processing file /home/runner/work/curl/curl/bld/src/tool_bname.c. Error while processing /home/runner/work/curl/curl/bld/src/tool_bname.c. [...] ``` Ref: https://github.com/curl/curl/actions/runs/13525337357/job/37794388404?pr=16480#step:36:561 Closes #16480
This commit is contained in:
parent
200993fccd
commit
37523c91bc
3 changed files with 27 additions and 23 deletions
|
|
@ -206,7 +206,8 @@ endif
|
|||
TIDY := clang-tidy
|
||||
|
||||
tidy: $(HUGE) $(CA_EMBED_CSOURCE)
|
||||
$(TIDY) $(CURL_CFILES) $(curl_cfiles_gen) $(TIDYFLAGS) $(CURL_CLANG_TIDYFLAGS) -- $(curl_CPPFLAGS) $(CPPFLAGS) $(AM_CPPFLAGS) -DHAVE_CONFIG_H
|
||||
(_curl_cfiles=`echo ' $(CURL_CFILES)' | sed -e 's/ +/ /g' -e 's| | $(srcdir)/|g'`; \
|
||||
$(TIDY) $$_curl_cfiles $(curl_cfiles_gen) $(TIDYFLAGS) $(CURL_CLANG_TIDYFLAGS) -- $(curl_CPPFLAGS) $(CPPFLAGS) $(AM_CPPFLAGS) -DHAVE_CONFIG_H)
|
||||
|
||||
listhelp:
|
||||
(cd $(top_srcdir)/docs/cmdline-opts && make listhelp)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue