Finish sync for all cases of compilation