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

[#1997] Build system driver #13

Open
wants to merge 24 commits into
base: stable
Choose a base branch
from

Conversation

krendelhoff2
Copy link
Contributor

@krendelhoff2 krendelhoff2 commented Dec 10, 2024

Description

This PR presents the new build system.
The legacy build system was removed.
Object files related code is not included in this PR.
If it will be decided to include them into release, I'll provide related changes in the next PR.
This PR assumes we do not use registry anymore.
On the high level build process is more or less the same as before.

Stage 1:

  1. File gets preprocessed.
  2. Its compilation is driven up to Ast_core.
  3. Its dependencies gets extracted.
    3.1. For jsligo, filepaths from import declarations are taken.
    3.2. For cameligo, references to modules which are not in the scope is considered a dependency.
  4. Dependency information is getting resolved into file path.
    4.1. It's straightforward for jsligo.
    4.2. For cameligo, please see this comment.

Stage 2:

Compilation continues until reaches target AST.

Stage 3:

  1. All the compiled AST gets aggregated into one in the correct order.
  2. For cameligo, module aliases are added, because actual module names are different from the module paths they were resolved from.

#import preprocessor directive gets ignored. !3274 should be merged for proper warning.

@krendelhoff2 krendelhoff2 force-pushed the krendelhoff/#1997-build-system-driver branch 2 times, most recently from 4452258 to f850264 Compare December 19, 2024 11:50
@krendelhoff2 krendelhoff2 force-pushed the krendelhoff/#1997-build-system-driver branch from f850264 to 2a03836 Compare January 26, 2025 10:55
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.

3 participants