Closed djphazer closed 1 year ago
Following this up — cloning a fresh repo and running this fails — did you have to set anything to stop the code from complaining about brackets everywhere? @djphazer
Sometimes a missing semicolon or something silly can cause a lot of confusing compiler errors... what is the very first error it complains about?
Are you saying you're trying to build from source with a clean clone of this repo? Or are you trying to apply this patch to a different branch?
Clean clone, installed PIO in VSCode and ran the o_c prod. complains about every midi HEM file and more
I've staged this patch (per @recliq #54 ) for convenient testing and cherry-picking for other forks. It is enough to get the branch to build with Platform IO. It works via PIO inside VSCode, as well as with the PlatformIO CLI on my Raspberry Pi.
The built binary size is greatly reduced:
Maybe teensy@1.6.0 within PIO has less overhead or something? It also builds with teensy@3.7.1 but yields a binary size similar to what we're used to.
-DTEENSY_OPT_SMALLEST_CODE
yields a smaller binary... but at what expense? Trying with teensy@4.0+ gives me stupid errors.Anyway, I've been actively using this build config and haven't encountered any major runtime issues yet... I even re-enabled all the MIDI stuff and it still fits! Needs more testing for sure...