-
Notifications
You must be signed in to change notification settings - Fork 22
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
nds: add BlocksDS port #359
Conversation
4d8645e
to
2f50dce
Compare
Updated, but temporarily blocked by blocksds/sdk#90 , as well as more |
The final issue with this port that I'm aware of is solved by blocksds/libnds#45 |
Makefile
Outdated
# As does BlocksDS, currently | ||
# | ||
ifeq (${BUILD_NDS_BLOCKSDS},1) | ||
CFLAGS += -Wno-strict-prototypes -Wno-pedantic -Wno-undef -Wno-declaration-after-statement |
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.
Checking on the differences between the NDS hack and the BlocksDS hack here:
-Wno-undef
- does using-isystem
for the SDK includes in the BlocksDS Makefile fragment fix the need for this?-Wno-declaration-after-statement
- what is this for? If it's in MZX it'd be better to fix the affected code, since MSVC and old compilers don't like declarations after statements.
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.
Re -Wno-undef
: Apparently, this has been fixed in a later BlocksDS version altogether.
Re -Wno-declaration-after-statement
:
CC src/counter.c
In file included from /home/asie/toolchains/blocksds/sdk/libs/libnds/include/nds/arm9/boxtest.h:19,
from /home/asie/toolchains/blocksds/sdk/libs/libnds/include/nds.h:134,
from src/compat.h:91,
from src/board.h:23,
from src/counter.c:32:
/home/asie/toolchains/blocksds/sdk/libs/libnds/include/nds/arm9/videoGL.h: In function 'glCallList':
/home/asie/toolchains/blocksds/sdk/libs/libnds/include/nds/arm9/videoGL.h:856:5: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
856 | u32 count = *list++;
| ^~~
It's in BlocksDS. There's an open issue to fix all such warnings, but it's a lot of work. I'll probably fast-track this one, but only for the next release: blocksds/sdk#4
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.
Ah, okay then.
… not, mimicking BlocksDS 0.10.0+ Makefile logic
181e896
to
bc25bbd
Compare
The main difference over the previous toolchain is ~120K smaller binaries, faster memcpy/memset, and the many bugfixes accumulated in the last few weeks. However, even though it appears to be stable (perhaps even better) in testing, as BlocksDS's future is less certain - think "Lindy effect" - I think it's worth keeping it as a separate port for the time being.