OSDN Git Service

perf python: Ignore unused command line arguments when building with clang
authorArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 20 Jul 2022 17:59:22 +0000 (14:59 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 20 Jul 2022 18:14:39 +0000 (15:14 -0300)
commit41d0914d861e82b4eeec16dd0f6109c311cf4c7e
treeda73c9061308533b6262830e0084800a653b248b
parentf077c77699553ba57444178c5c2ebafdffc8ad95
perf python: Ignore unused command line arguments when building with clang

Noticed after switching to python3 by default on some older fedora
releases:

  35    38.20 fedora:27                     : FAIL clang version 5.0.2 (tags/RELEASE_502/final)
    clang-5.0: error: argument unused during compilation: '-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1' [-Werror,-Wunused-command-line-argument]
    clang-5.0: error: argument unused during compilation: '-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1' [-Werror,-Wunused-command-line-argument]
    error: command 'clang' failed with exit status 1

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/scripts/perl/Perf-Trace-Util/Build
tools/perf/util/setup.py