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 210980 - Support for LLVM/Clang compiler collection for C/C++ (Unix, Mac)
Summary: Support for LLVM/Clang compiler collection for C/C++ (Unix, Mac)
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Toolchain (show other bugs)
Version: 7.1.1
Hardware: PC Linux
: P3 normal with 2 votes (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-11 02:42 UTC by XVilka
Modified: 2012-12-11 08:20 UTC (History)
2 users (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description XVilka 2012-04-11 02:42:21 UTC
Product Version = NetBeans IDE 7.1.1 (Build 201203012225)
Operating System = Linux version 3.3.1-gentoo running on amd64
Java; VM; Vendor = 1.7.0_03-icedtea
Runtime = OpenJDK 64-Bit Server VM 22.0-b10
Please add support for LLVM/Clang compilers scheme in Prefernces->C/C++->Compilers
Comment 1 pietrom 2012-06-06 14:48:52 UTC
It is not supported on Mac OS-X Lion either.

From the dialog at Options > C/C++ > Build Tools > Add

Specifying the directory where the clang compiler is located, the following error is returned:

"No compiler sets were found in the directory ..."
Comment 2 Alexander Simon 2012-06-06 18:11:04 UTC
fixed, change set:
http://hg.netbeans.org/cnd-main/rev/41d5f9caf873
Comment 3 pietrom 2012-06-06 21:10:39 UTC
@Alexander Simon:
This is a detail, but I noticed from the change log that CLang is classified as a GNU project. I think this is not true.

E.g.:

<toolchain name="CLang" display="CLang Compiler Collection" family="GNU" qmakespec="${os}-llvm"/>
Comment 4 Alexander Simon 2012-06-07 04:41:52 UTC
(In reply to comment #3)
> This is a detail, but I noticed from the change log that CLang is classified as
> a GNU project. I think this is not true.
GNU family in this context means:
- tool collection is GNU compatible and can be used instead of any other tool collection of GNU family without significant changes in code, makefiles, and so on.
For example cc compiler does not compatible with gcc.
Attribute family is used for finding best tool collection if project is moved to another system. Project keeps two attributes of the tool collection: name and family (for example "CLang|GNU"). If other system does not have "CLang" tool collection, IDE will use other tool collection from GNU family (for example "GNU|GNU").
Comment 5 Quality Engineering 2012-06-09 04:36:22 UTC
Integrated into 'main-golden', will be available in build *201206090001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/41d5f9caf873
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixed Bug #210980 Support for LLVM/Clang compiler collection for C/C++
- support clang compiler on Mac and Unix
Comment 6 Alexander Simon 2012-12-11 08:20:46 UTC
*** Bug 223630 has been marked as a duplicate of this bug. ***