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

Add support for "sysroot" #28

Open
duncanmac99 opened this issue Sep 15, 2018 · 1 comment
Open

Add support for "sysroot" #28

duncanmac99 opened this issue Sep 15, 2018 · 1 comment

Comments

@duncanmac99
Copy link

In the GNU C pre-processor, an argument called '-isysroot' (or '--sysroot', depending on circumstances) is allowed to specify the first part of the path or paths used in '-I' arguments. Any given '-I' argument may then reference the path given in the "sysroot" argument by starting the path with an '='. If either of those arguments appear on the compiler command line, it is used for both the pre-processor and the linker (for libraries); if both appear, the '-isysroot' argument is given to the pre-processor, and the other one goes to the linker.

Not clear is what happens if there is more than one '--sysroot' argument on the command-line, or whether that argument must appear before or after the '-I' arguments.

Support for just the '--sysroot' argument would make sense and allow paths given to each '-I' argument to be shorter.

@duncanmac99
Copy link
Author

If we are running under Windows/DOS, we may want to incorporate support for the Windows call "GetSystemDirectory". For more details:

https://msdn.microsoft.com/en-us/library/windows/desktop/ms724373(v=vs.85).aspx

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