clang-cl: Enable linker optimization explicitly
In release mode, MSVC linker will enable it by default while clang-cl won't. So enable it explicitly. Change-Id: Iabfd8698d426290fee59662acf6c124b9f226c11 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>bb10
parent
36827faa18
commit
6a210e0329
|
|
@ -46,6 +46,8 @@ QMAKE_CXXFLAGS_LTCG_FATOBJECTS = $$QMAKE_CFLAGS_LTCG_FATOBJECTS
|
|||
# Leave QMAKE_LFLAGS_LTCG empty because lld-link doesn't need any additional parameters
|
||||
QMAKE_LFLAGS_LTCG =
|
||||
|
||||
QMAKE_LFLAGS_RELEASE += /OPT:REF,ICF,LBR
|
||||
|
||||
# Precompiled headers are not supported yet by clang
|
||||
CONFIG -= precompile_header
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue