Skip to content

Commit

Permalink
Bug 548010 - Add support for Qt for linux-g++
Browse files Browse the repository at this point in the history
We had linux-g++-64. But with Ubuntu 18.04, when you install Qt5
you end up with linux-g++. This simply add that and doesn't specify
the architecture so should work for both 32 and 64 bit.

Change-Id: Ia458e212ff53638496a7108f58b212ef96296afd
  • Loading branch information
Doug Schaefer committed Jun 6, 2019
1 parent aeaf678 commit b9c9c44
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion qt/org.eclipse.cdt.qt.core/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: org.eclipse.cdt.qt.core;singleton:=true
Bundle-Version: 2.2.1.qualifier
Bundle-Version: 2.2.100.qualifier
Bundle-Activator: org.eclipse.cdt.internal.qt.core.Activator
Bundle-Vendor: %providerName
Require-Bundle: org.eclipse.core.runtime,
Expand Down
7 changes: 7 additions & 0 deletions qt/org.eclipse.cdt.qt.core/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -163,5 +163,12 @@
value="x86_64">
</property>
</mapping>
<mapping
spec="linux-g++">
<property
key="os"
value="linux">
</property>
</mapping>
</extension>
</plugin>
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,9 @@ public boolean supports(IQtInstall install, IToolChain toolChain) {
}

for (Entry<String, String> property : install.getProperties().entrySet()) {
if (!property.getValue().equals(toolChain.getProperty(property.getKey()))) {
String tcValue = toolChain.getProperty(property.getKey());
// Treat null as a wildcard
if (tcValue != null && !property.getValue().equals(tcValue)) {
return false;
}
}
Expand Down

0 comments on commit b9c9c44

Please sign in to comment.