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

DEBUG=1 & DEBUG=VERBOSE not working for cpp example #75

Open
29th-Day opened this issue Jun 4, 2024 · 1 comment
Open

DEBUG=1 & DEBUG=VERBOSE not working for cpp example #75

29th-Day opened this issue Jun 4, 2024 · 1 comment

Comments

@29th-Day
Copy link

29th-Day commented Jun 4, 2024

The named flags did not work for me. I had to add the following code to work around it in the Makefile

DEBUG ?= 1
VERBOSE ?= 1
...
CFLAGS := ....

ifneq ($(VERBOSE), 0)
CFLAGS += -DVERBOSE=$(VERBOSE)
DEBUG = 1
endif

ifneq ($(DEBUG), 0)
CFLAGS += -DDEBUG=$(DEBUG)
endif

Im not quite sure which information to add since Im not very farmiliar with make. I also didn't test it for all the other projects.

make: GNU Make 4.3
OS: Ubuntu 22.04 WSL (Windown 11)
latest devkitpro version

@Maschell
Copy link
Collaborator

Maschell commented Jun 4, 2024

You are right I forgot to update the cpp example. I'll fix it soon

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

No branches or pull requests

2 participants