add config option to target codegen architectures
fix TS build