`compile-flags: -Copt-level` will avoid adding -O. Similarly for -g and -Cdebuglevel.
Alas it does not currently work, because of limitations in compiletest…