compile before generating amd loader