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

Can't run binary outside of project directory. #598

Closed
TwoClocks opened this issue Dec 7, 2023 · 1 comment
Closed

Can't run binary outside of project directory. #598

TwoClocks opened this issue Dec 7, 2023 · 1 comment

Comments

@TwoClocks
Copy link
Contributor

TwoClocks commented Dec 7, 2023

if you copy the arocc bin and a c file out of the project directory, it fails with
fatal error: unable to find Aro builtin headers

It looks like Complation.defineSystemIncludes walks the file system from the binary upwards, looking for include/stddef.h. So if you move the binary outside the project tree... no bueno.

With some guidance, I can take a stab at it. Do you want to just embed the file(s), or add a build step to compress them first? or other?

@Vexu
Copy link
Owner

Vexu commented Dec 7, 2023

GCC fails with gcc: fatal error: cannot execute ‘cc1’: execvp: No such file or directory when moved out of installation directory and clang ignores the failure so that you get an error when trying to include stdalign.h for example.

Based on that the current behavior is fine but if you want this to work then you can just make that a non-fatal error.

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