servo/python/servo
Jonathan Schwender d6d610ef6d
mach: Fix cross-compiling from windows to non windows (#36070)
Since we switched to using `aws-lc-rs` instead of `ring`,
cross-compiling on windows (to non-windows) had been broken. Using the
default MSVC Generator results in CMake erroneously being configured for
the host platform, with failing compiler checks. Switching to Ninja
fixes that issue.

The CMake build rules of aws-lc-rs also make use of `tr` and assume it
is installed, hence we provide a helpful error message suggesting to try
using mach from `git bash` which does provide the `tr` command.

<!-- Please describe your changes on the following line: -->


---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by
`[X]` when the step is complete, and replace `___` with appropriate
data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix cross-compiling servo on windows hosts to
non-windows targets
- [x] These changes do not require tests because: We don't test
cross-compiling from windows hosts in CI. These changes were manually
tested by compiling for OpenHarmony on windows.

Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
2025-04-04 08:07:32 +00:00
..
mutation Remove __future__ imports that are no longer necessary (#30661) 2023-11-02 12:01:10 +00:00
platform Check for existence of 'sudo' on Linux in ./mach bootstrap (#35739) 2025-03-28 14:58:25 +00:00
__init__.py Fix tidy issues with Python files in python/ 2015-06-02 19:51:41 -04:00
bootstrap_commands.py fix clean-cargo-cache command (#33408) 2024-09-11 17:32:01 +00:00
build_commands.py mach: adopt uv and avoid system python (#34632) 2024-12-16 09:20:37 +00:00
command_base.py mach: Fix cross-compiling from windows to non windows (#36070) 2025-04-04 08:07:32 +00:00
devenv_commands.py Rename 'cargo-clippy' mach command to just 'clippy' (#34481) 2024-12-05 03:19:15 +00:00
gstreamer.py clippy: Fix a variety of clippy warnings in fonts, layout_2020 and the DOM code (#33894) 2024-10-18 13:57:13 +00:00
package_commands.py Remove resources/prefs.json (#34999) 2025-01-16 07:38:58 +00:00
post_build_commands.py mach: adopt uv and avoid system python (#34632) 2024-12-16 09:20:37 +00:00
testing_commands.py Fix broken unit-test of webview (#36238) 2025-04-02 10:00:24 +00:00
try_parser.py Remove references to 2020 layout in try_parser.py (#36047) 2025-03-25 11:19:48 +00:00
util.py mach: remove python2 compatibility code (#33410) 2024-09-11 18:25:25 +00:00
visual_studio.py Fix visual_studio.py to call vswhere with -utf8 (#32949) 2024-08-06 09:35:05 +00:00