Comments (2)
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.
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)
- Unexpected non-zero index in CalculateElementAddressInstr HOT 3
- Removed unnecessary dependencies from `ddc_stable_test` and `ddc_canary_test`
- Divergent execution with Float32x4 HOT 4
- Macros: Static types are broken HOT 4
- Function.toJS uses static type for type casts on dart2wasm but runtime type for type casts on dart2js/ddc.
- Analyzer and compiler should call out when a getter doesn't exist but a setter does
- DDC should move away from using JS default arguments for Dart methods with default parameters
- data transfer between two socket using pipe not working correctly HOT 2
- HttpResponse.addStream does not forward cancelation HOT 4
- [analyzer_plugin]: Add a way to react to `VSCode source.fixAll`
- Unhandled exception in CFE at spurious type parameter list HOT 1
- LSP: Symantic highlight (`textDocument/semanticTokens/full`) returned empty right after language-server start HOT 6
- [CP] Check dart:ffi imports and wasm:import/export pragmas in user code HOT 5
- [dart2js] Error messages no longer appearing when running apps in Chrome HOT 2
- [Macros] ClassTypeBuilder.declareType with mixin crashes the dart analysis server in vscode
- [ddc] Error messages no longer appearing when running apps in Chrome HOT 1
- [CP] [dart2wasm] Make `dart compile wasm` accept --enable-experiment flags and pass those to compiler HOT 4
- [CP] [dart2wasm] Only share type parameter fields if nullability allows HOT 2
- Path and FileSystemEntity in Dart HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sdk.