Use link-time optimization for building

Taken from https://github.com/shadps4-emu/shadPS4/pull/1636.
This commit is contained in:
Quang Ngô 2024-12-07 10:58:04 +07:00 committed by Jarred Wilson
parent 1c1c476b8b
commit 98f4afcd63

View file

@ -71,6 +71,7 @@ modules:
- -DCMAKE_C_COMPILER=clang
- -DCMAKE_CXX_COMPILER=clang++
- -DCMAKE_BUILD_TYPE=RelWithDebInfo
- -DCMAKE_INTERPROCEDURAL_OPTIMIZATION_RELWITHDEBINFO=ON
sources:
# We're using a git source here rather than a zipball because zip/tarballs
# don't include submodules, which shadps4 depends on (in the externals directory)