Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow sharedir path to be overridden #450

Closed
wants to merge 1 commit into from

Conversation

brad0
Copy link
Contributor

@brad0 brad0 commented Aug 14, 2022

No description provided.

@xavierleroy
Copy link
Contributor

This is not going to work: the CompCert executable ccomp looks for compcert.ini in $D/../share, where $D is the directory containing ccomp. This makes binary CompCert distributions easy to install and relocate.

@brad0
Copy link
Contributor Author

brad0 commented Aug 22, 2022

Ya, I came across the Driver code for that and trying to understand it.

We need to be able to put compcert.ini into a sub-directory of share/ as in share/compcert.

@xavierleroy
Copy link
Contributor

xavierleroy commented Aug 29, 2022

I misspoke: CompCert looks for compcert.ini in $D, $D/../share and $D/../share/compcert. So your wish could be satisfied, but the configure script needs more work.

xavierleroy added a commit that referenced this pull request Nov 6, 2022
Make sure that it's one of the three locations where the ccomp executable
looks for compcert.ini.

Closes: #450
@xavierleroy
Copy link
Contributor

See proposal at #460.

@brad0
Copy link
Contributor Author

brad0 commented Nov 10, 2022

With #460 posted I am going to close this.

@brad0 brad0 closed this Nov 10, 2022
xavierleroy added a commit that referenced this pull request Nov 14, 2022
…460)

Make sure that it's one of the three locations where the ccomp executable
looks for compcert.ini.

Closes: #450
@brad0 brad0 deleted the configure_sharedir branch November 15, 2023 23:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants