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:
parent
59f78d06b1
commit
e98464d2c8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user