-
-
Notifications
You must be signed in to change notification settings - Fork 345
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GCC compilers version 8 or newer are highly recommended. #2155
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,6 +40,8 @@ OBJCOPY := $(TOOLSPEC)objcopy | |
OBJDUMP := $(TOOLSPEC)objdump | ||
GDB := $(TOOLSPEC)gdb | ||
|
||
GCC_UPGRADE_URL := https://sming.readthedocs.io/en/latest/arch/esp8266/getting-started/eqt.html | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should we also update the 'pre-release' note on this page? I've yet to find any issues with it :-) |
||
|
||
CPPFLAGS += \ | ||
-nostdlib \ | ||
-mlongcalls \ | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -189,7 +189,15 @@ SMING_CXX_STD ?= c++17 | |
endif | ||
CXXFLAGS += -std=$(SMING_CXX_STD) | ||
|
||
|
||
GCC_MIN_MAJOR_VERSION = 8 | ||
GCC_VERSION_COMPATIBLE := $(shell expr `$(CC) -dumpversion | cut -f1 -d.` \>= $(GCC_MIN_MAJOR_VERSION)) | ||
|
||
ifeq ($(GCC_VERSION_COMPATIBLE),0) | ||
$(warning ***** Please, upgrade your GCC compiler to version $(GCC_MIN_MAJOR_VERSION) or newer *************) | ||
ifneq ($(GCC_UPGRADE_URL),) | ||
$(info Instructions for upgrading your compiler can be found here: $(GCC_UPGRADE_URL)) | ||
endif | ||
endif | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How about:
https://stackoverflow.com/questions/42419301/makefile-emit-warning-gcc-version-is-lower-than-4-8-0 |
||
|
||
# Component (user) libraries have a special prefix so linker script can identify them | ||
CLIB_PREFIX := clib- | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug fixes!