[lto] fix building with Clang under Linux #2523

Closed
DraVee wants to merge 2 commits from DraVee:lto/enable-gobally into master
Member
* based off: https://stackoverflow.com/questions/73011966/unable-to-compile-c-program-with-clang-14 Signed-off-by: Caio Oliveira <caiooliveirafarias0@gmail.com>
DraVee added 1 commit 2025-09-19 04:37:33 +02:00
[lto] fix building with Clang under Linux
All checks were successful
eden-license / license-header (pull_request) Successful in 16s
501ac7416b
* based off: https://stackoverflow.com/questions/73011966/unable-to-compile-c-program-with-clang-14

Signed-off-by: Caio Oliveira <caiooliveirafarias0@gmail.com>
requested reviews from Lizzie, crueter, CamilleLaVey, Maufeat, MrPurple666, MaranBr 2025-09-19 04:37:33 +02:00
Author
Member

Should superseed #2526

Should superseed #2526
Member

LTO is disabled by default, if an user enabled YUZU_USE_LTO and it fails, it shouldn't be a warning but rather a hard error

LTO is disabled by default, if an user enabled YUZU_USE_LTO and it fails, it shouldn't be a warning but rather a hard error
Author
Member

@Lizzie wrote in #2523 (comment):

LTO is disabled by default, if an user enabled YUZU_USE_LTO and it fails, it shouldn't be a warning but rather a hard error

Got it, gonna ammend this later

@Lizzie wrote in https://git.eden-emu.dev/eden-emu/eden/pulls/2523#issuecomment-4651: > LTO is disabled by default, if an user enabled YUZU_USE_LTO and it fails, it shouldn't be a warning but rather a hard error Got it, gonna ammend this later
DraVee changed title from [lto] fix building with Clang under Linux to WIP: [lto] fix building with Clang under Linux 2025-09-25 08:15:45 +02:00
DraVee force-pushed lto/enable-gobally from 501ac7416b to df29466cbb 2025-09-25 16:31:07 +02:00 Compare
DraVee changed title from WIP: [lto] fix building with Clang under Linux to [lto] fix building with Clang under Linux 2025-09-25 16:31:08 +02:00
DraVee added 1 commit 2025-09-25 16:38:39 +02:00
[lto] Set CMP0069 to force optimizations and give errors if the compiler does not know
All checks were successful
eden-license / license-header (pull_request) Successful in 21s
f1d1757d41
https://cmake.org/cmake/help/latest/policy/CMP0069.html

Signed-off-by: Caio Oliveira <caiooliveirafarias0@gmail.com>
Author
Member

@Lizzie Should be good now

@Lizzie Should be good now
Owner

sup: #2581

sup: #2581
crueter closed this pull request 2025-09-27 01:21:56 +02:00
All checks were successful
eden-license / license-header (pull_request) Successful in 21s
Required
Details

Pull request closed

Sign in to join this conversation.
No description provided.