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

[Refactor] Condense the leo build flags #27926

Open
evan-schott opened this issue Apr 30, 2024 · 0 comments
Open

[Refactor] Condense the leo build flags #27926

evan-schott opened this issue Apr 30, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@evan-schott
Copy link
Contributor

Currently:

Compile the current package as a program

Usage: leo build [OPTIONS]

Options:
  -d
          Print additional information for debugging
      --endpoint <ENDPOINT>
          Endpoint to retrieve network state from. [default: http://api.explorer.aleo.org/v1]
      --non-recursive
          Does not recursively compile dependencies.
  -q
          Suppress CLI output
      --offline
          Enables offline mode.
      --enable-symbol-table-spans
          Enable spans in AST snapshots.
      --enable-initial-symbol-table-snapshot
          Enables dead code elimination in the compiler.
      --enable-type-checked-symbol-table-snapshot
          Writes symbol table snapshot of the type checked symbol table.
      --enable-unrolled-symbol-table-snapshot
          Writes symbol table snapshot of the unrolled symbol table.
      --enable-ast-spans
          Enable spans in AST snapshots.
      --enable-dce
          Enable spans in symbol table snapshots.
      --enable-all-ast-snapshots
          Writes all AST snapshots for the different compiler phases.
      --enable-initial-ast-snapshot
          Writes AST snapshot of the initial parse.
      --enable-unrolled-ast-snapshot
          Writes AST snapshot of the unrolled AST.
      --enable-ssa-ast-snapshot
          Writes AST snapshot of the SSA AST.
      --path <PATH>
          Optional path to Leo program root folder
      --enable-flattened-ast-snapshot
          Writes AST snapshot of the flattened AST.
      --home <HOME>
          Optional path to aleo program registry.
      --enable-destructured-ast-snapshot
          Writes AST snapshot of the destructured AST.
      --enable-inlined-ast-snapshot
          Writes AST snapshot of the inlined AST.
      --enable-dce-ast-snapshot
          Writes AST snapshot of the dead code eliminated (DCE) AST.
  -h, --help
          Print help
@evan-schott evan-schott added the bug Something isn't working label Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant