Giter Club home page Giter Club logo

Comments (2)

osa1 avatar osa1 commented on August 15, 2024

I think this was 110219a. I just pass --libraries-path <absolute-path-to-libraries.json>. This workflow of running dart2wasm from source is probably not supported for end users but if possible fixing this should be convenient for devs.

from sdk.

mkustermann avatar mkustermann commented on August 15, 2024

The dart2wasm.dart script had some assumption about where the sdk can be found relative to Platform.script. This is very problematic as Platform.script is different if dart2wasm is e.g. AOT compiled / imported / ... Also this assumption about finding sdk dir was used to supply the sdk dir to CFE (even though we should use platform or libraries spec instead).

This was cleaned up in 328ae02

@biggs0125 I strongly encourage following the documentation and use pkg/dart2wasm/tool/compile_benchmark / pkg/dart2wasm/tool/run_benchmark scripts. They have everything needed. You can give the former the --src argument and it will run from source.

The actual end-user tools (dart compile wasm and flutter build web --wasm (as well as pkg/dart2wasm/tool/compile_benchmark) ensure to use the lower-level dart2wasm.dart in the right way). Though I've uploaded cl/369024 to print a more meaningful error.

from sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.