From cab6e4c99a2cae06ca1366d73c6b19e1f2bb20d4 Mon Sep 17 00:00:00 2001 From: Alexander Frick Date: Mon, 19 Feb 2024 21:49:33 -0600 Subject: [PATCH] android fix --- TODO.md | 2 ++ arm/build/config/compiler/BUILD.gn | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/TODO.md b/TODO.md index b9cd4cfd6..884992c8a 100644 --- a/TODO.md +++ b/TODO.md @@ -36,3 +36,5 @@ made possible by Thorium > Chromium Experiments > Thorium Experiments Add captive portals patch > https://github.com/uazo/cromite/blob/master/build/patches/Remove-detection-of-captive-portals.patch + +Restore JXL support on Android. diff --git a/arm/build/config/compiler/BUILD.gn b/arm/build/config/compiler/BUILD.gn index dbf6edf11..b6c7cc520 100644 --- a/arm/build/config/compiler/BUILD.gn +++ b/arm/build/config/compiler/BUILD.gn @@ -1049,9 +1049,12 @@ config("compiler") { # Full RUSTC optimizations. "-Copt-level=3", - "-Cllvm-args=-fp-contract=fast", ] + if (current_cpu == "arm64") { + rustflags += [ "-Cllvm-args=-fp-contract=fast", ] + } + if (!is_win || force_rustc_color_output) { # Colorize error output. The analogous flag is passed for clang. This must # be platform-gated since rustc will unconditionally output ANSI escape