meson: Remove efi-cc option
authorJan Janssen <medhefgo@web.de>
Wed, 29 Dec 2021 14:02:04 +0000 (15:02 +0100)
committerJan Janssen <medhefgo@web.de>
Sun, 2 Jan 2022 09:18:26 +0000 (10:18 +0100)
commit52adf0e91ef00d21a2e83f7669d0823667ce6b6c
tree504074b4a7dcabb9ba25ad8a875f7dfbeef97dae
parentb774de18831247681e3c7c67ae464af97cc4d55e
meson: Remove efi-cc option

Changing the efi compiler this way doesn't really work. The gnu-efi
header checks as well as supported compiler flag checks use the
regular cc that meson detects. Changing the compiler this way will
end up with bad compiler flags. For the very same reason, this does
not work with a cross-compiler without going through proper meson
cross-compilation steps either.

The proper way to build systemd-boot with a different compiler is to
use a different build folder and then just use the proper ninja build
target to only build the bootloader/stub.
meson_options.txt
src/boot/efi/meson.build