Is there any way to keep locs in cmti but not in cmi?

For some reasons, we want cmi to be reproducible (no locations embedded), thanks

There’s a few issues and pull requests on github that may be of interest.
#1515 shows how to use an environment variable to make locations independent of the absolute path.
#9307 and #9345 track the issue of cmi files having different contents depending on what other files were already compiled (which is problematic in parallel builds).