Skip to content

Fix compilation and add Nix flake.#38

Merged
mengzhuo merged 3 commits intoplctlab:mainfrom
DzmingLi:main
Oct 9, 2025
Merged

Fix compilation and add Nix flake.#38
mengzhuo merged 3 commits intoplctlab:mainfrom
DzmingLi:main

Conversation

@DzmingLi
Copy link

  • Fixed several bugs that prevented successfully compiling the latest core using the current moonc with the latest moon.
  • Add flake.nix to facilitate Nix development.

│                                                                                             │
│   - Add Tattr_alias type to checked_attributes.ml for parsing #alias attributes             │
│   - Update attribute parsing to recognize #alias(\"method_name\") syntax                    │
│   - Modify add_method in toplevel_typer.ml to register aliases alongside original method    │
│   names                                                                                     │
│   - Remove temporary hardcoded fallback logic from global_env.ml                            │
│   - Update README.md to use latest core version instead of pinned 4660d8b                   │
│                                                                                             │
│   This fixes compatibility with latest core library which uses #alias attributes            │
│   for operator overloading (e.g., UninitializedArray::at with #alias(\"_[_]\")).            │
│                                                                                             │
│   - Fix OCaml compilation issues including inline attribute syntax in basic_base64.ml       │
│   - Update dune warning suppressions to handle newer OCaml compiler warnings                │
│   - Preserve meaningful variable names with underscore prefixes for better code             │
│   readability                                                                               │
│   - Fix type errors in riscv_tac2ssa.ml and riscv_opt_peephole.ml                           │
│   - Add comprehensive nix flake configuration for development environment                   │
│   - Enable hybrid toolchain: latest moon (0.1.20250918) + current moonc + latest core       │
│                                                                                             │
│   This resolves the moon/moonc/core version compatibility issues and enables                │
│   successful compilation of the latest moonbitlang/core repository with 62 tasks            │
│   completing successfully.
Resolve merge conflict in riscv_virtasm.ml by adopting upstream logic for La/Li
instructions while preserving meaningful variable names.
@mengzhuo mengzhuo merged commit 88108d6 into plctlab:main Oct 9, 2025
2 checks passed
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