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

Make compiler work without installing to /usr #120

Open
cursedastronaut opened this issue Dec 16, 2024 · 3 comments
Open

Make compiler work without installing to /usr #120

cursedastronaut opened this issue Dec 16, 2024 · 3 comments

Comments

@cursedastronaut
Copy link

If you just use make -C ./build, you cannot compile if you cannot access /usr as it will still look for files as if those were installed:

$ ./hcc hello_world.HC 
ERROR: Failed to open file: /usr/local/include/tos.HH

If there is a compiler option to specify the location of those files, such as ./src/holyc-lib/, the --help option wasn't clear enough for me to figure it out.

@Jamesbarford
Copy link
Owner

I'm not sure I see the immediate use case? make install or sudo make install solves this.

@cursedastronaut
Copy link
Author

True, but if I don't have root privileges (such as on non-rooted phone), I can't use it. It'd be nice if we could compile it with a prefix like GCC where the default prefix would be /usr/local

@Jamesbarford
Copy link
Owner

I see your point, presently this isn't something I will look into. However later down the line I'll consider it once the build process is generally less prototypey.

With regard to getting this working on a phone, in all likelihood we'd need to be targeting ARM which the compiler does not yet do.

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

No branches or pull requests

2 participants