]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
perf python: Remove -fstack-clash-protection when building with some clang versions
authorArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 18 Jan 2019 14:34:15 +0000 (11:34 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Mar 2019 21:04:00 +0000 (14:04 -0700)
commit76fb9909983eddb12d07f7f1fc59a6a700a2adb6
tree27ca8f6f735ab53128e0602814e84a846b0143b3
parentb5b1eed6b863ef020a6309d9040f3cea31fcdb10
perf python: Remove -fstack-clash-protection when building with some clang versions

[ Upstream commit 94ec1eb711db69be1414b56b3160b816e86a5c5b ]

These options are not present in some (all?) clang versions, so when we
build for a distro that has a gcc new enough to have these options and
that the distro python build config settings use them but clang doesn't
support, b00m.

This is the case with fedora rawhide (now gearing towards f30), so check
if clang has the  and remove the missing ones from CFLAGS.

Cc: Eduardo Habkost <ehabkost@redhat.com>
Cc: Thiago Macieira <thiago.macieira@intel.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: https://lkml.kernel.org/n/tip-5q50q9w458yawgxf9ez54jbp@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/perf/util/setup.py