1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-19 04:48:12 +00:00

build(crypto): make clang version cross-platform compatible

This commit is contained in:
matejcik 2022-05-30 11:13:09 +02:00 committed by matejcik
parent 59f78d06b1
commit e98464d2c8

View File

@ -1,5 +1,5 @@
# CLANG_VERSION is empty if the compiler is not clang-based
CLANG_VERSION = $(shell $(CC) --version | grep -Po "clang version \K[\d\.]+")
CLANG_VERSION = $(shell $(CC) --version | sed -nr 's/^.*clang version ([0-9.]+).*$$/\1/p')
CLANG_VERSION_MAJOR = $(shell echo $(CLANG_VERSION) | cut -f1 -d.)
# determine specific version ranges