-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Description
Hello,
OS: Windows 10
I am performing a test compiling flutter engine and I am having some troubles with the Dart VM configuration. While the solution is clear enough I am not able to correctly configure it so the Dart VM matches the snapshot. Debug console output:
[FATAL:flutter/runtime/dart_vm_initializer.cc(89)] Error while initializing the Dart VM: Snapshot not compatible with th current VM configuration: the snapshot requires 'product no-code_comments dwarf_stack_traces_mode no-lazy_dispatchers dedup_instructions no-asserts x64 windows no-compressed-pointers null-safety' but the VM has 'product no-code_comments dwarf_stack_traces_mode no-lazy_dispatchers dedup_instructions no-tsan no-asserts ×64 windows no-compressed-pointers null-safety'
The only difference between the Snapshot and DartVM configuration is the fact no-tsan is present. How can I compile it so it matches the snapshot config (so no-tsan don't longer appears).
I have tried to compile it with this:
python .\flutter\tools\gn --unoptimized --runtime-mode=release --no-prebuilt-dart-sdk --tsan
Trying to add it as an environment variable:
GYP_DEFINES="clang=0 target_arch=x64 build_for_tool=tsan"
Editing .gclient with:
gn args out/host_release_unopt
And adding:
is_tsan: true
even setting the environment variable (which should be the same): DART_USE_TSAN
Compilation is done with ninja:
ninja -C out\host_release_unopt
And none of these changes makes no difference in the flutter_windows.dll to match the snapshot config. I have been trying to find documentation about this however I haven't found anything apart from what I mentioned above.
I am not sure if this is the best place to ask this but any help is appreciated.
Thanks!