[BZ-1153852] fix incremental compilation when adding a new function