detect gold linker

This commit is contained in:
Le Tan 2020-12-22 19:56:47 +08:00
parent d40248bb06
commit 334a3ae0a5

View File

@ -5,7 +5,10 @@ equals(QT_MAJOR_VERSION, 5):lessThan(QT_MINOR_VERSION, 12): error("requires Qt 5
QT += core gui widgets webenginewidgets webchannel network svg printsupport
CONFIG -= qtquickcompiler
unix:!macx:CONFIG += use_gold_linker
unix:!mac:exists(/usr/bin/ld.gold) {
CONFIG += use_gold_linker
}
# Enable message log in release build
DEFINES += QT_MESSAGELOGCONTEXT