D23789: RFC: Add ECMGenerateExportHeaders, for improved handling of deprecated API

David Faure noreply at phabricator.kde.org
Mon Sep 30 19:27:44 BST 2019


dfaure added a comment.


  > Which might be an issue for people who would like to use different compiler on the same system, both building against the same generated export header file.
  
  I see the theoretical problem, but how could this ever be a problem in practice?
  On Unix all compilers support the same syntax (`__attribute__ ((__deprecated__))`), so you'd have to be on Windows, build a library with mingw, and then try to use it with MSVC, or vice-versa? I wonder if this even works. AFAIK it doesn't (hence the compiler-specific binary installers for Qt, for instance).
  
  Oh and if C++14 support is enabled, we could use `[[deprecated("use foo instead")]]` which is standard and portable :-)
  (requires C++17 for enums and namespaces)

REPOSITORY
  R240 Extra CMake Modules

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

To: kossebau
Cc: chehrlic, dfaure, cgiboudeaux, kde-frameworks-devel, kde-buildsystem, LeGast00n, GB_2, bencreasy, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20190930/b9c39075/attachment.html>


More information about the Kde-frameworks-devel mailing list