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

Compilation: store cwd in Compilation #738

Merged
merged 1 commit into from
Aug 1, 2024
Merged

Compilation: store cwd in Compilation #738

merged 1 commit into from
Aug 1, 2024

Conversation

ehaas
Copy link
Collaborator

@ehaas ehaas commented Aug 1, 2024

Removes a dependency on global system state. The primary usage would be a library that wants to use aro with an arbitrary working directory without actually having to change the working directory of the process.

Removes a dependency on global system state. The primary usage would be a library
that wants to use aro with an arbitrary working directory without actually having
to change the working directory of the process.
@@ -127,22 +127,27 @@ types: struct {
} = .{},
string_interner: StrInt = .{},
interner: Interner = .{},
/// If this is not null, the directory containing the specified Source will be searched for includes
/// Used by MS extensions which allow searching for includes relative to the directory of the main source file.
ms_cwd_source_id: ?Source.Id = null,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unrelated to this PR but this field should probably be moved to Preprocessor.

@Vexu Vexu merged commit 8f608ac into Vexu:master Aug 1, 2024
3 checks passed
@ehaas ehaas deleted the cwd branch August 1, 2024 22:35
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

Successfully merging this pull request may close these issues.

2 participants