]> xenbits.xensource.com Git - unikraft/unikraft.git/commit
build: Robust version checking helpers with `printf`
authorSimon Kuenzer <simon@unikraft.io>
Thu, 27 Jul 2023 07:46:00 +0000 (09:46 +0200)
committerUnikraft <monkey@unikraft.io>
Fri, 11 Aug 2023 10:21:30 +0000 (10:21 +0000)
commitab47fa3a80df34049340fcbfdb97075a2e000344
tree8273cb3469fd5707597330fef52b9cefec202ead
parente4688beca69492f8601cd998ec84e576911f6a6c
build: Robust version checking helpers with `printf`

This commit updates the compiler version checking helpers so that they also
work under environments like Darwin. It turns out that the behavior of
`echo` can be different in different environments, while `printf` seems to
be well defined.

Signed-off-by: Simon Kuenzer <simon@unikraft.io>
Reviewed-by: Alexander Jung <alex@unikraft.io>
Approved-by: Razvan Deaconescu <razvand@unikraft.io>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Closes: #1034
support/build/Makefile.rules