forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/4.13' into master
Change-Id: Ib60df85a85fc1c94d8cc0dc23ea9fcdb4822bcab
This commit is contained in:
@@ -28,8 +28,6 @@
|
||||
#include "cppmodelmanager.h"
|
||||
#include "headerpathfilter.h"
|
||||
|
||||
#include <baremetal/baremetalconstants.h>
|
||||
|
||||
#include <coreplugin/icore.h>
|
||||
|
||||
#include <projectexplorer/headerpath.h>
|
||||
@@ -385,8 +383,11 @@ void CompilerOptionsBuilder::addProjectMacros()
|
||||
{
|
||||
static const int useMacros = qEnvironmentVariableIntValue("QTC_CLANG_USE_TOOLCHAIN_MACROS");
|
||||
|
||||
if (m_projectPart.toolchainType == BareMetal::Constants::IAREW_TOOLCHAIN_TYPEID || useMacros)
|
||||
if (m_projectPart.toolchainType == ProjectExplorer::Constants::CUSTOM_TOOLCHAIN_TYPEID
|
||||
|| m_projectPart.toolchainType.name().contains("BareMetal")
|
||||
|| useMacros) {
|
||||
addMacros(m_projectPart.toolChainMacros);
|
||||
}
|
||||
|
||||
addMacros(m_projectPart.projectMacros);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user