Skip to content
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

Change compiler option #26

Open
NicoHood opened this issue Aug 26, 2017 · 0 comments
Open

Change compiler option #26

NicoHood opened this issue Aug 26, 2017 · 0 comments

Comments

@NicoHood
Copy link
Contributor

It would be nice if you could change the compiler to avr-g++ instead of avr-gcc for example. This is currently not working. I found an example online which might be similar to what we want to also use:

CXX = $(CROSS_COMPILE)-g++
CC = $(CROSS_COMPILE)-gcc
AS = $(CROSS_COMPILE)-as
AR = $(CROSS_COMPILE)-ar
NM = $(CROSS_COMPILE)-nm
LD = $(CROSS_COMPILE)-ld
OBJDUMP = $(CROSS_COMPILE)-objdump
OBJCOPY = $(CROSS_COMPILE)-objcopy
RANLIB = $(CROSS_COMPILE)-ranlib
STRIP = $(CROSS_COMPILE)-strip

This way we can always overwrite the CC or CXX compiler from avr-gcc to avr-g++. Also wouldnt it make sense to use avr-g++ for c++ files anyways? And if at least 1 c++ source was used, the LD should also be avr-g++?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants