]> asedeno.scripts.mit.edu Git - linux.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)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 21 Jan 2019 20:38:56 +0000 (17:38 -0300)
commita5dcc4ca9129f12a07722f41b6c5e8d7f71f4063
tree60dda222384784ab440c43cdb5d6b3260e9958d9
parent6934058d9fb6c058fb5e5b11cdcb19834e205c91
perf python: Remove -fstack-clash-protection when building with some clang versions

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>
tools/perf/util/setup.py