Skip to content

Commit 6a20cf9

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 99a5c0e commit 6a20cf9

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

build/org.eclipse.cdt.build.gcc.core/META-INF/MANIFEST.MF

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
22
Bundle-ManifestVersion: 2
33
Bundle-Name: %pluginName
44
Bundle-SymbolicName: org.eclipse.cdt.build.gcc.core;singleton:=true
5-
Bundle-Version: 2.1.700.qualifier
5+
Bundle-Version: 2.1.800.qualifier
66
Bundle-Activator: org.eclipse.cdt.build.gcc.core.internal.Activator
77
Bundle-Vendor: %providerName
88
Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.33.0,4)",

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)