Skip to main content
summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorDoug Schaefer2018-05-05 21:28:58 -0400
committerDoug Schaefer2018-05-05 21:28:58 -0400
commit3feb726cf56193c1a24d02381e8bbac763dca8dd (patch)
tree765e33fb44784ca46733f4e830c7e651c8bb83ee /build
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')
-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 7debdd9039..7c5e7b3c26 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