PMunch / ratel

128 stars 4 forks source link

Implement an import-able config.nims file #3

Closed PMunch closed 2 years ago

PMunch commented 2 years ago

A brilliant idea from @yglukhov, essentially instead of having the nim.cfg file required to be put within the project by the user, rather require them to write a two line config.nims file which would consist of something along the lines of:

import boardConf
board "teensy"

This would allow us to move all the switches into the board configuration along with providing custom logic for microcontroller specific things (like done with board "teensy" above that would just run switch("define", "board:teensy")

PMunch commented 2 years ago

This should be done in https://github.com/PMunch/ratel/commit/ee1ce1a3abf8fd5921c29450577dfec8da56015f