[Differential] [Commented On] D3850: Pass -fno-operator-names when supported

kfunk (Kevin Funk) noreply at phabricator.kde.org
Fri Dec 30 08:29:07 UTC 2016


kfunk added a comment.


  In https://phabricator.kde.org/D3850#72308, @rakuco wrote:
  
  > Isn't it better to use `check_cxx_compiler_flag` to see if the flag is supported and enable it in case it is?
  
  
  -fno-operator-names is an ancient compiler flag, supported by GCC since at least 2000 [1]. I've also tested Clang, it's supported from at *least* Clang 3.5 there. Intel compiler also supports it since at least 2005 [2]. I don't think we need a `check_cxx_compiler_flag` here.
  
  [1] https://gcc.gnu.org/ml/gcc-patches/2000-04/msg00333.html
  [2] https://software.intel.com/en-us/forums/intel-c-compiler/topic/308561

REPOSITORY
  R240 Extra CMake Modules

REVISION DETAIL
  https://phabricator.kde.org/D3850

EMAIL PREFERENCES
  https://phabricator.kde.org/settings/panel/emailpreferences/

To: kfunk, #frameworks, ivan, #buildsystem
Cc: rakuco, elvisangelaccio
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20161230/10c25fd4/attachment.html>


More information about the Kde-frameworks-devel mailing list