Skip to content

Commit a2a4ab4

Browse files
committed
fix gcc plugin check
1 parent a011b97 commit a2a4ab4

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

setup.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,13 @@
99
if not ("shared=yes" in link_mode):
1010
raise RuntimeError(
1111
"Score-P not build with \"--enable-shared\". Link mode is:\n{}".format(link_mode))
12-
gcc_plugin = scorep.helper.get_scorep_config("GCC plug-in support:")
13-
if gcc_plugin is not None and not ("yes" in link_mode):
14-
raise RuntimeError(
15-
"Score-P not build with GCC Compiler Plugin. GCC plug-in support is:\n{}".format(gcc_plugin))
12+
13+
check_compiler = scorep.helper.get_scorep_config("C99 compiler used:")
14+
if "gcc" in check_compiler:
15+
gcc_plugin = scorep.helper.get_scorep_config("GCC plug-in support:")
16+
if not ("yes" in gcc_plugin):
17+
raise RuntimeError(
18+
"Score-P uses GCC but is not build with GCC Compiler Plugin. GCC plug-in support is:\n{}".format(gcc_plugin))
1619

1720

1821
cmodules = []

0 commit comments

Comments
 (0)