Your build should not have a runtime dependence on a file in your source tree.
You instead should copy the necessary file from your source tree into your build tree as part of the build process (where it then can freely change the permissions to be writable). Your build then should depend on that copy of the file.