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

feature request: allow code on stdin for gcc compat #166

Open
didickman opened this issue Feb 12, 2017 · 2 comments
Open

feature request: allow code on stdin for gcc compat #166

didickman opened this issue Feb 12, 2017 · 2 comments

Comments

@didickman
Copy link
Contributor

didickman commented Feb 12, 2017

In my build system, gcc takes input from stdin like below. It would be nice if CompCert allowed the same thing.

Of course, the code on my end can be easily rewritten if needed...

$ printf '#include <paths.h>\n_PATH_STDPATH\n' |  gcc -E -P  -
"/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11R6/bin:/usr/local/bin"

$ printf '#include <paths.h>\n_PATH_STDPATH\n' |  ccomp -E -P  -
Unknown argument `-'
@bschommer
Copy link
Member

If we include the -pipe option we can have a look into including this.

@didickman
Copy link
Contributor Author

The pipe option would be useful too (at the moment I have a custom patch to just ignore the pipe flag when it’s used from various system makefiles). That being said it’s been a few years since I opened this PR and it can be worked around outside of compcert as I point out above. Therefore perhaps another candidate to consider closing?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants