[issue28584] ICC compiler check is too permissive

Gianfranco report at bugs.python.org
Thu May 17 11:15:57 EDT 2018


Gianfranco <costamagnagianfranco at yahoo.it> added the comment:

My first attempt was instead of
*gcc*
to just check for
*gcc

this avoids when "icc" is the last part of the string, I admit this is not too strong.
Another approach is to use basename with cut -d " " -f 1 to pick just the first parameter, but maybe the best way is to do something like this:
gcc|*/gcc|*-gcc

I confirm the "icc-find-v2.patch" works in this way

----------
Added file: https://bugs.python.org/file47597/icc-find-v2.patch

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue28584>
_______________________________________


More information about the Python-bugs-list mailing list