daveshah, I'm building nextpnr in debug mode, but it's still -O3 and removing all my stuff I'm trying to debug. I googled around a bit and found a few CFLAGS hacks, but in this case it results in both -O3 and -O0 being added...
I usually end up just hacking the CMakeLists with the exact cflags I want
but... how? Whatever I put it just ends up adding a whole bunch Wall -fPIC -O3 -g -pipe -fPIC -std=gnu++11 so I'm clearly adding it in the wrong place or using the wrong variable