diff options
Diffstat (limited to 'tests/auto/extensionsystem/plugin.qbs')
-rw-r--r-- | tests/auto/extensionsystem/plugin.qbs | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/tests/auto/extensionsystem/plugin.qbs b/tests/auto/extensionsystem/plugin.qbs index a0496e7dbb..68e259fafd 100644 --- a/tests/auto/extensionsystem/plugin.qbs +++ b/tests/auto/extensionsystem/plugin.qbs @@ -1,5 +1,5 @@ -import qbs import qbs.FileInfo +import qbs.Utilities import QtcFunctions DynamicLibrary { @@ -12,6 +12,16 @@ DynamicLibrary { targetName: QtcFunctions.qtLibraryName(qbs, name.split('_')[1]) destinationDirectory: project.buildDirectory + '/' + FileInfo.relativePath(project.ide_source_tree, sourceDirectory) + cpp.cxxFlags: { + var flags = []; + if (qbs.toolchain.contains("clang") + && !qbs.hostOS.contains("darwin") + && Utilities.versionCompare(cpp.compilerVersion, "10") >= 0) { + // Triggers a lot in Qt. + flags.push("-Wno-deprecated-copy", "-Wno-constant-logical-operand"); + } + return flags; + } cpp.rpaths: [ project.buildDirectory + "/" + qtc.libDirName + "/qtcreator", project.buildDirectory + "/" + qtc.libDirName + "/qtcreator/plugins" |