Skip to content

Commit

Permalink
Specify C compiler to use for lwip host (#2423)
Browse files Browse the repository at this point in the history
If clang is installed cmake selects it and build fails.

Specific error is `, ##__VA_ARGS__` is gcc extension
  • Loading branch information
mikee47 authored Nov 15, 2021
1 parent 85f1051 commit 85d3214
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Sming/Arch/Host/Components/lwip/component.mk
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ else
endif

CMAKE_OPTIONS += -DLWIP_LIBNAME=$(COMPONENT_VARIANT)
CMAKE_OPTIONS += -DCMAKE_C_COMPILER=$(CC)

$(COMPONENT_RULE)$(COMPONENT_LIBPATH):
$(Q) $(CMAKE) -DUSER_LIBDIR=$(COMPONENT_LIBDIR) $(CMAKE_OPTIONS) $(COMPONENT_PATH)/$(UNAME)
Expand Down

0 comments on commit 85d3214

Please sign in to comment.