pass compile parameters to pre_compile and post_compile hooks