Also reload a source file if the compilation mode changed due to a change to the global value of the flags `debug` or `optimize`