forked from qt-creator/qt-creator
CppEditor: Add another exception for using toolchain defines
If we ignore the emscripten built-in defines, e.g. Q_OS_WASM will not be set. Change-Id: Ia2770b8a50a33b695040a19f1cabd62d0d86fdb6 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -19,6 +19,8 @@
|
||||
#include <utils/qtcassert.h>
|
||||
#include <utils/stringutils.h>
|
||||
|
||||
#include <webassembly/webassemblyconstants.h>
|
||||
|
||||
#include <QDir>
|
||||
#include <QRegularExpression>
|
||||
#include <QtGlobal>
|
||||
@@ -418,6 +420,7 @@ void CompilerOptionsBuilder::addProjectMacros()
|
||||
|
||||
if (m_projectPart.toolchainType == ProjectExplorer::Constants::CUSTOM_TOOLCHAIN_TYPEID
|
||||
|| m_projectPart.toolchainType == Qnx::Constants::QNX_TOOLCHAIN_ID
|
||||
|| m_projectPart.toolchainType == WebAssembly::Constants::WEBASSEMBLY_TOOLCHAIN_TYPEID
|
||||
|| m_projectPart.toolchainType.name().contains("BareMetal") || useMacros) {
|
||||
addMacros(m_projectPart.toolchainMacros);
|
||||
}
|
||||
|
Reference in New Issue
Block a user