EmbeddedNim / picostdlib

Nim wrapper for the raspberry pi stdlib
MIT License
70 stars 11 forks source link

Include existing nimbase.h file from nim lib dir at compile-time #54

Closed auxym closed 1 year ago

auxym commented 1 year ago

This removes the downloading / copying of the nimbase.h file when creating a project with piconim init. Instead, we add a CMake directive so that the nim/lib dir is passed as an include search path to gcc.

Why:

This is implemented by piggybacking onto the same cmake include file that is generated at runtime (for the pico-sdk includes). I moved and renamed stuff a bit in the piconim code in order to reflect this. The advantage is that existing projects keep working with new piconim, because we don't need to add a new include to the base CMakeLists file.

I bumped the min required Nim compiler to 1.6.0, for two reasons:

Finally, bumped nimble patch version.