From 334a3ae0a5166c15a53ed2a1b7d36f9dd5583072 Mon Sep 17 00:00:00 2001 From: Le Tan Date: Tue, 22 Dec 2020 19:56:47 +0800 Subject: [PATCH] detect gold linker --- src/src.pro | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/src.pro b/src/src.pro index c064fc76..2d82bf4f 100644 --- a/src/src.pro +++ b/src/src.pro @@ -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