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 a command-line flag to configure the "relative_root" directories #178

Open
jfecher opened this issue Jan 14, 2024 · 1 comment
Open
Labels
good first issue An issue that doesn't require deep knowledge of the compiler to fix or implement

Comments

@jfecher
Copy link
Owner

jfecher commented Jan 14, 2024

Part of getting packages to work in Ante: https://antelang.org/docs/language/#packages

ModuleCache.relative_roots can be found here:

pub relative_roots: Vec<PathBuf>,

We should have command-line flags for:

  • Setting all of these directories at once, e.g. --roots .:/path/to/stdlib:./deps
  • Adding a root without --add-root /additional/path
  • Others?

The "relative root" name is not final. Feel free to rename it if you have a good suggestion, especially if it is a more familiar term from an existing language or program.

@jfecher jfecher added the good first issue An issue that doesn't require deep knowledge of the compiler to fix or implement label Jan 14, 2024
@csm-18
Copy link

csm-18 commented Nov 27, 2024

Like in C, we can call "relative root" as "default paths" or "default include paths" or "include paths".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue An issue that doesn't require deep knowledge of the compiler to fix or implement
Projects
None yet
Development

No branches or pull requests

2 participants