Skip to content

Commit

Permalink
fix build of protobuf wheel for older compilers
Browse files Browse the repository at this point in the history
  • Loading branch information
hgy59 committed Jun 16, 2023
1 parent b2b1a40 commit 8834a40
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions spk/homeassistant/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,11 @@ WHEELS_CFLAGS += [numpy] -O0
endif
endif

# [protobuf]
ifeq ($(call version_lt, ${TC_GCC}, 5.0),1)
WHEELS_CFLAGS += [protobuf] -std=c99
endif

# [pycryptodome] [pycryptodomex] [ciso8601]
ifeq ($(call version_ge, ${TC_GCC}, 4.9),1)
WHEELS_CFLAGS += [pycryptodome] -std=c11
Expand Down
2 changes: 1 addition & 1 deletion spk/homeassistant/src/requirements-crossenv.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ multidict==6.0.4
netifaces==0.11.0
numpy==1.23.2
orjson==3.8.10
# pandas==2.0.1 # depends on installed numby wheel ?...
# pandas==2.0.1 # depends on installed numpy wheel ?...
Pillow==9.5.0
protobuf==4.23.2
psutil==5.9.5
Expand Down

0 comments on commit 8834a40

Please sign in to comment.