Skip to content

Commit 143bbe7

Browse files
committed
Fixes User Defined Toolchain clang type forgetfullnes
When a User Defined Toolchain of type clang was created (Preferences > C/C++ > Core Build Toolchains > User Defined Toolchains) the Type was reported correctly as clang. But after restarting the workbench the Type was reported as GCC. This is now fixed so the Type always shows as clang for a clang toolchain.
1 parent b4d81a1 commit 143bbe7

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

build/org.eclipse.cdt.build.gcc.core/src/org/eclipse/cdt/build/gcc/core/GCCUserToolChainProvider.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ public void addToolChain(IToolChain toolChain) throws CoreException {
154154
toolChains.add(newtc);
155155

156156
newtc.addProperty(ID, gcc.getId());
157+
newtc.addProperty(TYPE, gcc.getTypeId());
157158
newtc.addProperty(ARCH, gcc.getProperty(IToolChain.ATTR_ARCH));
158159
newtc.addProperty(PATH, gcc.getPath().toString());
159160

0 commit comments

Comments
 (0)