Commit 0b724400 authored by Sergey Shambir's avatar Sergey Shambir Committed by Erik Verbruggen

CppTools: fixed wrong flags check.

Change-Id: I682e78c352066ddd05e96199fd8ead088e3e9f52
Reviewed-by: default avatarErik Verbruggen <erik.verbruggen@digia.com>
parent 281c42c7
...@@ -79,25 +79,25 @@ void ProjectPart::evaluateToolchain(const ToolChain *tc, ...@@ -79,25 +79,25 @@ void ProjectPart::evaluateToolchain(const ToolChain *tc,
ToolChain::CompilerFlags c = (cxxflags == cflags) ToolChain::CompilerFlags c = (cxxflags == cflags)
? cxx : tc->compilerFlags(cflags); ? cxx : tc->compilerFlags(cflags);
if (c | ToolChain::StandardC11) if (c & ToolChain::StandardC11)
cVersion = C11; cVersion = C11;
else if (c | ToolChain::StandardC99) else if (c & ToolChain::StandardC99)
cVersion = C99; cVersion = C99;
else else
cVersion = C89; cVersion = C89;
if (cxx | ToolChain::StandardCxx11) if (cxx & ToolChain::StandardCxx11)
cxxVersion = CXX11; cxxVersion = CXX11;
else else
cxxVersion = CXX98; cxxVersion = CXX98;
if (cxx | ToolChain::BorlandExtensions) if (cxx & ToolChain::BorlandExtensions)
cxxExtensions |= BorlandExtensions; cxxExtensions |= BorlandExtensions;
if (cxx | ToolChain::GnuExtensions) if (cxx & ToolChain::GnuExtensions)
cxxExtensions |= GnuExtensions; cxxExtensions |= GnuExtensions;
if (cxx | ToolChain::MicrosoftExtensions) if (cxx & ToolChain::MicrosoftExtensions)
cxxExtensions |= MicrosoftExtensions; cxxExtensions |= MicrosoftExtensions;
if (cxx | ToolChain::OpenMP) if (cxx & ToolChain::OpenMP)
cxxExtensions |= OpenMP; cxxExtensions |= OpenMP;
cWarningFlags = tc->warningFlags(cflags); cWarningFlags = tc->warningFlags(cflags);
......
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