emit event when compilation is done