Project Home
Project Home
Source Code
Source Code
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
BroadcastCommunity.qnx.com will be offline from May 31 6:00pm until June 2 12:00AM for upcoming system upgrades. For more information please go to https://community.qnx.com/sf/discussion/do/listPosts/projects.bazaar/discussion.bazaar.topc28418
Forum Topic - CLANG QNX650: (4 Items)
   
CLANG QNX650  
Manage too add to  llvm/clang5  support for QNX650. I don't know what I,m doing, but it managed to compile ( still using
 QNX linker though) our softwares and passing all of the tests !!!  Which surprised me.

I was hopping for faster build time than gcc 4.8.3 but so far they are very similar.

If anyone is interested to play with it I could post patches I guess. It's surprisingly, well to me at least, how little
 changes it took.  Should be very simple to  get it to work for QNX660 / QNX700. 

Only clang/clang++ is working, no libcxx no linker, sanitizer, etc, that seems more complicated.

ntox86-gdb has no problem debugging clang generated exe.
Re: CLANG QNX650  
Hi Mario,

Could you share the patches for clang?
Re: CLANG QNX650  
Attached are the diff from todays clang trunk (7.0)

What I have not been able to build yet is libcxx

I used this cmake command to setup the project ( using Ninja )

cmake 	-G"Ninja" \
	-DLLVM_TARGETS_TO_BUILD=X86 \
	-DCMAKE_BUILD_TYPE=Release \
	-DLLVM_DEFAULT_TARGET_TRIPLE=i386-pc-qnx650-gnu \
	-DCOMPILER_RT_INCLUDE_TESTS=OFF \
	-DLLVM_ENABLE_ASSERTIONS=OFF \
	-DLLVM_ENABLE_LTO=ON \
	-DLLVM_ENABLE_ZLIB=ON \
	-DLLVM_BUILD_TEST=OFF \
	-DLLVM_INCLUDE_TESTS=OFF \
	-DLLVM_USE_LINKER=gold \
	-DLLVM_ENABLE_WARNINGS=OFF \
	../trunk 
Attachment: Text clang.diff 8.08 KB
Re: CLANG QNX650  
Thanks! It looks fairly easy. I would need this for clang (llvm actually) 5.0. I suppose the effort is similar to this 
one?