precommit hook to compile