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

Unexpected memory limits option #556

Open
Lampese opened this issue Jan 10, 2025 · 1 comment
Open

Unexpected memory limits option #556

Lampese opened this issue Jan 10, 2025 · 1 comment

Comments

@Lampese
Copy link
Contributor

Lampese commented Jan 10, 2025

mod.pkg.json:

{
  "import": [],
  "link": {
    "wasm": {
      "memory-limits": {
        "min": 1,
        "max": 2048
      }
    }
  }
}

command:

moon build --target wasm-gc --dry-run

output:

moonc build-package ./src/main/main.mbt -o ./target/wasm-gc/release/build/main/main.core -pkg username/hello/main -std-path /home/lampese/.moon/lib/core/target/wasm-gc/release/bundle -pkg-sources username/hello/main:./src/main -target wasm-gc
moonc link-core /home/lampese/.moon/lib/core/target/wasm-gc/release/bundle/core.core ./target/wasm-gc/release/build/main/main.core -main username/hello/main -o ./target/wasm-gc/release/build/main/main.wasm -pkg-config-path ./src/main/moon.pkg.json -pkg-sources username/hello/main:./src/main -pkg-sources moonbitlang/core:/home/lampese/.moon/lib/core -target wasm-gc -memory-limits-min 1 -memory-limits-max 2048

mod.pkg.json:

{
  "import": [],
  "link": {
    "wasm": {
      "memory-limits": {
        "min": 1,
        "max": 2048
      }
    },
    "wasm-gc": {
      "memory-limits": {
        "min": 1,
        "max": 204
      }
    }
  }
}

command:

moon build --target wasm-gc --dry-run

output:

moonc build-package ./src/main/main.mbt -o ./target/wasm-gc/release/build/main/main.core -pkg username/hello/main -std-path /home/lampese/.moon/lib/core/target/wasm-gc/release/bundle -pkg-sources username/hello/main:./src/main -target wasm-gc
moonc link-core /home/lampese/.moon/lib/core/target/wasm-gc/release/bundle/core.core ./target/wasm-gc/release/build/main/main.core -main username/hello/main -o ./target/wasm-gc/release/build/main/main.wasm -pkg-config-path ./src/main/moon.pkg.json -pkg-sources username/hello/main:./src/main -pkg-sources moonbitlang/core:/home/lampese/.moon/lib/core -target wasm-gc -memory-limits-min 1 -memory-limits-max 2048
@Lampese
Copy link
Contributor Author

Lampese commented Jan 10, 2025

cc @tonyfettes

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

No branches or pull requests

1 participant