Commit 5ef35e41 authored by Daniel Teske's avatar Daniel Teske Committed by Tobias Hunger

Abi: Fix Abi constructor to not disallow certain abi combinations

Change-Id: I58e51bb0756270cb7929c0edc0811342a67fbe31
Reviewed-by: default avatarTobias Hunger <tobias.hunger@digia.com>
parent 1d052d30
......@@ -315,14 +315,15 @@ Abi::Abi(const Architecture &a, const OS &o,
m_osFlavor = UnknownFlavor;
break;
case ProjectExplorer::Abi::BsdOS:
m_osFlavor = FreeBsdFlavor;
if (m_osFlavor < FreeBsdFlavor || m_osFlavor > OpenBsdFlavor)
m_osFlavor = UnknownFlavor;
break;
case ProjectExplorer::Abi::MacOS:
if (m_osFlavor < GenericMacFlavor || m_osFlavor > GenericMacFlavor)
m_osFlavor = UnknownFlavor;
break;
case ProjectExplorer::Abi::UnixOS:
if (m_osFlavor < GenericUnixFlavor || m_osFlavor > GenericUnixFlavor)
if (m_osFlavor < GenericUnixFlavor || m_osFlavor > SolarisUnixFlavor)
m_osFlavor = UnknownFlavor;
break;
case ProjectExplorer::Abi::WindowsOS:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment