TUP-2314: set the codegen init in headless.