diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2018-12-19 17:37:58 +0100 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2019-01-14 13:48:58 +0000 |
commit | 893b4dc56c7e2ef21f4e253ccbbb20643d18cadf (patch) | |
tree | 8d467b2fe7e3580f38f00cd359c37b53cada8c60 /tests/auto/blackbox/tst_blackboxqt.cpp | |
parent | 90588a6a719aa143500d480582ae2de733ac7c0d (diff) | |
download | qbs-893b4dc56c7e2ef21f4e253ccbbb20643d18cadf.tar.gz |
Qt support: Use gold linker if Qt is configured that way
Fixes: QBS-1421
Change-Id: I1f6d749eba38c9a4caa60341f19ee5e89e89d28a
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'tests/auto/blackbox/tst_blackboxqt.cpp')
-rw-r--r-- | tests/auto/blackbox/tst_blackboxqt.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/auto/blackbox/tst_blackboxqt.cpp b/tests/auto/blackbox/tst_blackboxqt.cpp index 3441255e2..88e1aa5ec 100644 --- a/tests/auto/blackbox/tst_blackboxqt.cpp +++ b/tests/auto/blackbox/tst_blackboxqt.cpp @@ -160,6 +160,16 @@ void TestBlackboxQt::includedMocCpp() QVERIFY2(!m_qbsStdout.contains("compiling moc_myobject.cpp"), m_qbsStdout.constData()); } +void TestBlackboxQt::linkerVariant() +{ + QDir::setCurrent(testDataDir + "/linker-variant"); + QCOMPARE(runQbs(QStringList{"--command-echo-mode", "command-line"}), 0); + const bool goldRequired = m_qbsStdout.contains("Qt requires gold: true"); + const bool goldNotRequired = m_qbsStdout.contains("Qt requires gold: false"); + QVERIFY2(goldRequired != goldNotRequired, m_qbsStdout.constData()); + QCOMPARE(m_qbsStdout.contains("-fuse-ld=gold"), goldRequired ? 1 : 0); +} + void TestBlackboxQt::lrelease() { QDir::setCurrent(testDataDir + QLatin1String("/lrelease")); |