Searched hist:"79 f882fcf9461d2b873813e392bfc5098e6586b9" (Results 1 – 1 of 1) sorted by relevance
| /optee_os/mk/ |
| H A D | cc-option.mk | 79f882fcf9461d2b873813e392bfc5098e6586b9 Fri Nov 20 08:46:30 UTC 2020 Jerome Forissier <jerome@forissier.org> build: fix ld-option again
Commit 5510db0b9458 ("build: ld-option: handle any linker warning as an error") fixed an issue when used with the GNU linker, but while doing so it broke the Clang use case. The problem is, the exit status tested by `|| echo "Not supported"' is the one from grep, not the one from the link command.
The fix provided here is tested with GCC (ld) and Clang (ld.lld).
Fixes: 5510db0b9458 ("build: ld-option: handle any linker warning as an error") Signed-off-by: Jerome Forissier <jerome@forissier.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
|