diff options
author | MatÃas Locatti <[email protected]> | 2022-12-17 22:16:52 -0300 |
---|---|---|
committer | GitHub <[email protected]> | 2022-12-17 17:16:52 -0800 |
commit | fd1ea0fd8463c65f3d266512cba04a5c9d0863da (patch) | |
tree | 573d78a36a48d9cf439c5f65d96f5f1a63449128 /.ci/scripts | |
parent | 48108a8c9b28e08f86aab5c2ad41414e455f4706 (diff) | |
download | yuzu-mainline-fd1ea0fd8463c65f3d266512cba04a5c9d0863da.tar.gz yuzu-mainline-fd1ea0fd8463c65f3d266512cba04a5c9d0863da.zip |
Enable compiler optimizations and enforce x86-64-v2 on GCC/Clang (#9442)
* Testing LTO (#4)
* Testing LTO
* clang
* linux
* Added the rest of Blinkhawk's optimizations
* Unlikely asserts
* Removing LTO from Linux builds - GCC
* Removing LTO from Linux builds - Clang
Diffstat (limited to '.ci/scripts')
-rwxr-xr-x | .ci/scripts/clang/docker.sh | 1 | ||||
-rwxr-xr-x | .ci/scripts/linux/docker.sh | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/.ci/scripts/clang/docker.sh b/.ci/scripts/clang/docker.sh index 7d3ae4a1a..51769545e 100755 --- a/.ci/scripts/clang/docker.sh +++ b/.ci/scripts/clang/docker.sh @@ -11,6 +11,7 @@ ccache -s mkdir build || true && cd build cmake .. \ -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_CXX_FLAGS="-march=x86-64-v2" \ -DCMAKE_CXX_COMPILER=/usr/lib/ccache/clang++ \ -DCMAKE_C_COMPILER=/usr/lib/ccache/clang \ -DCMAKE_INSTALL_PREFIX="/usr" \ diff --git a/.ci/scripts/linux/docker.sh b/.ci/scripts/linux/docker.sh index 35c4a4368..c8bc56c9a 100755 --- a/.ci/scripts/linux/docker.sh +++ b/.ci/scripts/linux/docker.sh @@ -12,6 +12,7 @@ mkdir build || true && cd build cmake .. \ -DBoost_USE_STATIC_LIBS=ON \ -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_CXX_FLAGS="-march=x86-64-v2" \ -DCMAKE_CXX_COMPILER=/usr/lib/ccache/g++ \ -DCMAKE_C_COMPILER=/usr/lib/ccache/gcc \ -DCMAKE_INSTALL_PREFIX="/usr" \ |