From f4cc1eb6480b7838fe30c3700b04974935739b49 Mon Sep 17 00:00:00 2001 From: Ben Konyi Date: Wed, 22 May 2024 21:03:44 +0000 Subject: [PATCH] [ docs ] Add documentation for `DART_VM_OPTIONS` Change-Id: Icf66ff1f024c9f14bc8241b2b23f99f1ed8e0c45 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/367800 Reviewed-by: Derek Xu Commit-Queue: Ben Konyi Auto-Submit: Ben Konyi Commit-Queue: Derek Xu --- docs/Settings-VM-flags-in-standalone-executables.md | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 docs/Settings-VM-flags-in-standalone-executables.md diff --git a/docs/Settings-VM-flags-in-standalone-executables.md b/docs/Settings-VM-flags-in-standalone-executables.md new file mode 100644 index 000000000000..b6120885cbba --- /dev/null +++ b/docs/Settings-VM-flags-in-standalone-executables.md @@ -0,0 +1,9 @@ +# Setting VM flags in standalone executables + +Dart VM flags and options can be provided to any executable generated using `dart compile exe` via the `DART_VM_OPTIONS` environment variable. + +`DART_VM_OPTIONS` should be set to a list of comma-separated flags and options with no whitespace. Options that allow for multiple values to be provided as comma-separated values are not supported (e.g., `--timeline-streams=Dart,GC,Compiler`). + +Example of a valid `DART_VM_OPTIONS` environment variable: + + DART_VM_OPTIONS=--random_seed=42,--verbose_gc