From a6c761f50f342140c28ad8312e3424dc79be2344 Mon Sep 17 00:00:00 2001 From: Bryan Oltman Date: Tue, 17 Dec 2024 16:34:20 -0500 Subject: [PATCH] fix: build updater with static runtime to prevent flutter engine build linking errors (#254) * fix: build updater with static runtime to prevent flutter engine build linking errors * Update library/.cargo/config.toml Co-authored-by: Eric Seidel * cspell --------- Co-authored-by: Eric Seidel --- cspell.config.yaml | 8 +++++--- library/.cargo/config.toml | 3 +++ 2 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 library/.cargo/config.toml diff --git a/cspell.config.yaml b/cspell.config.yaml index 00b666e..2bb5478 100644 --- a/cspell.config.yaml +++ b/cspell.config.yaml @@ -1,9 +1,9 @@ $schema: https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json -version: '0.2' +version: "0.2" ignorePaths: - target - build - - '**/*.g.dart' + - "**/*.g.dart" # Flutter platform directories with per-platform build files - windows - macos @@ -47,11 +47,13 @@ words: - logcat - mockall - mocktail + - msvc - oslog - pubspec - repr - reqwest - rollouts + - rustflags - rustls - rustup - serde @@ -67,4 +69,4 @@ words: - zstandard - zstd - xcodeproj - - pbxproj \ No newline at end of file + - pbxproj diff --git a/library/.cargo/config.toml b/library/.cargo/config.toml new file mode 100644 index 0000000..37d54bc --- /dev/null +++ b/library/.cargo/config.toml @@ -0,0 +1,3 @@ +# The Flutter engine builds with static crt runtime so we need to too to match. +[target.'cfg(all(windows, target_env = "msvc"))'] +rustflags = ["-C", "target-feature=+crt-static"]