Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDoug Schaefer2018-05-06 01:28:58 +0000
committerDoug Schaefer2018-05-06 01:28:58 +0000
commit3feb726cf56193c1a24d02381e8bbac763dca8dd (patch)
tree765e33fb44784ca46733f4e830c7e651c8bb83ee /build/org.eclipse.cdt.build.gcc.core
parentd7c4642ab8f28e5943d0c16656d69d35868c7b91 (diff)
downloadorg.eclipse.cdt-3feb726cf56193c1a24d02381e8bbac763dca8dd.tar.gz
org.eclipse.cdt-3feb726cf56193c1a24d02381e8bbac763dca8dd.tar.xz
org.eclipse.cdt-3feb726cf56193c1a24d02381e8bbac763dca8dd.zip
Default to the middle element of the gcc tuple for the os name.
Diffstat (limited to 'build/org.eclipse.cdt.build.gcc.core')
-rw-r--r--build/org.eclipse.cdt.build.gcc.core/src/org/eclipse/cdt/build/gcc/core/internal/GCCPathToolChainProvider.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/build/org.eclipse.cdt.build.gcc.core/src/org/eclipse/cdt/build/gcc/core/internal/GCCPathToolChainProvider.java b/build/org.eclipse.cdt.build.gcc.core/src/org/eclipse/cdt/build/gcc/core/internal/GCCPathToolChainProvider.java
index 7debdd90391..7c5e7b3c261 100644
--- a/build/org.eclipse.cdt.build.gcc.core/src/org/eclipse/cdt/build/gcc/core/internal/GCCPathToolChainProvider.java
+++ b/build/org.eclipse.cdt.build.gcc.core/src/org/eclipse/cdt/build/gcc/core/internal/GCCPathToolChainProvider.java
@@ -72,6 +72,8 @@ public class GCCPathToolChainProvider implements IToolChainProvider {
case "apple": //$NON-NLS-1$
gcc.setProperty(IToolChain.ATTR_OS, Platform.OS_MACOSX);
break;
+ default:
+ gcc.setProperty(IToolChain.ATTR_OS, tuple[1]);
}
try {
if (manager.getToolChain(gcc.getTypeId(), gcc.getId()) == null) {

Back to the top