D13613: RFC: Fix libclang default include paths on FreeBSD.

Gleb Popov noreply at phabricator.kde.org
Fri Jul 13 09:30:41 BST 2018


arrowd added a comment.


  In D13613#291303 <https://phabricator.kde.org/D13613#291303>, @aaronpuchert wrote:
  
  > In D13613#291301 <https://phabricator.kde.org/D13613#291301>, @arrowd wrote:
  >
  > > Files that are absent on FreeBSD are listed here <https://svnweb.freebsd.org/ports/head/devel/llvm60/files/clang/patch-tools_clang_lib_Headers_CMakeLists.txt?view=markup>. So, let's just use first one in lexicographics order: `adxintrin.h`.
  >
  >
  > Do you know why these files are patched out?
  
  
  AFAIK, FreeBSD base system also contains these headers, and these are conflicting. I suspect it is the same problem that Gentoo/FreeBSD faced there: https://bugs.llvm.org/show_bug.cgi?id=12957
  
  > The intrinsics could be architecture-specific (I guess we both have an x86), and I'm not sure whether they will be installed on other architectures like PowerPC. What about `iso646.h` or `cpuid.h`?
  
  FreeBSD base doesn't contain `iso646.h`, so `cpuid.h` is what's left for us.
  
  > Or maybe you have a better idea how to recognize the builtin directory.
  
  This is what https://bugs.kde.org/show_bug.cgi?id=393779 is about, basically. Besides looking at `clang/<numeric_version>/` in the path I have no idea.

REPOSITORY
  R32 KDevelop

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

To: arrowd, #kdevelop, mwolff
Cc: mwolff, aaronpuchert, kdevelop-devel, antismap, iodelay, vbspam, njensen, geetamc, Pilzschaf, akshaydeo, surgenight, arrowd
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20180713/815e098f/attachment-0001.html>


More information about the KDevelop-devel mailing list