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 - Incorrectly determined tool collection after building LLVM36
Summary: Incorrectly determined tool collection after building LLVM36
Status: RESOLVED WORKSFORME
Alias: None
Product: cnd
Classification: Unclassified
Component: Project (show other bugs)
Version: 8.2
Hardware: PC Linux
: P3 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-21 13:57 UTC by petrk
Modified: 2016-08-22 10:32 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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