-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
meson: Implemented a guard for LTO on macOS w/ GCC as this is broken
- Loading branch information
Showing
1 changed file
with
4 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,10 @@ | |
# SPDX-FileContributor: Written by Rachel Mant <[email protected]> | ||
cxx = meson.get_compiler('cpp') | ||
|
||
if get_option('b_lto') and host_machine.system() == 'darwin' and cxx.get_id() == 'gcc' | ||
error('GCC on macOS does not correctly implement support for LTO, please pass `-Db_lto=false` to Meson') | ||
endif | ||
|
||
if cxx.get_id() == 'msvc' and cxx.version().version_compare('<19.37') | ||
error('Your compiler is broken, please upgrade to at least MSVC 2022 release 17.7 to build bmpflash with MSVC.') | ||
endif | ||
|