This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 267660

Summary: Incorrectly determined tool collection after building LLVM36
Product: cnd Reporter: petrk
Component: ProjectAssignee: Alexander Simon <alexvsimon>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: P3    
Version: 8.2   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description petrk 2016-08-21 13:57:53 UTC
LLVM was built from IDE with g++ 5.3. After building IDE asked to add tool collection CLang (which was just built) and set CLang as a tool collection for LLVM project. But the compiler which was used is g++!
Comment 1 Alexander Simon 2016-08-22 09:14:26 UTC
Could you provide steps to reproduce?
Comment 2 petrk 2016-08-22 10:03:24 UTC
Just build LLVM 36 from scratch. Instruction is available at spuitnik/contrib/JConvert/docs/GettingStarted.txt
Comment 3 Alexander Simon 2016-08-22 10:32:41 UTC
Investigation:
Build procedure invokes
gcc 23 times,
clang 1546 times and
g++ 2033 times.

New project wizard use following algorithm to detect tool collection:
1. Analyze C compiler invocations. Win C compiler which was called more times.
2. If there is no C compiler invocation the wizard detect tool collection by C++ compiler invocations.

According to algorithm the primary tool collection for your project is CLang.

Note:
IDE does not support multi tool collection projects