diff options
| author | emmett1 <emmett1.2miligrams@protonmail.com> | 2024-08-18 20:10:31 +0800 |
|---|---|---|
| committer | emmett1 <emmett1.2miligrams@protonmail.com> | 2024-08-18 20:10:31 +0800 |
| commit | 16b4d03dcec24ca4cec0f83494445e2c441e3f46 (patch) | |
| tree | ee27b97e072f2e318ee1a283c2eeb1f5eb1f6056 /repos/extra/librewolf/fix-rust-target.patch | |
| parent | 67a8ef8dbec74960e95def503dc1110f57468598 (diff) | |
| download | alicelinux-16b4d03dcec24ca4cec0f83494445e2c441e3f46.tar.gz alicelinux-16b4d03dcec24ca4cec0f83494445e2c441e3f46.zip | |
librewolf: new added
Diffstat (limited to 'repos/extra/librewolf/fix-rust-target.patch')
| -rw-r--r-- | repos/extra/librewolf/fix-rust-target.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/repos/extra/librewolf/fix-rust-target.patch b/repos/extra/librewolf/fix-rust-target.patch new file mode 100644 index 00000000..9342063c --- /dev/null +++ b/repos/extra/librewolf/fix-rust-target.patch @@ -0,0 +1,31 @@ +Allow us to just set RUST_TARGEt ourselves instead of hacking around in mozilla's +weird custom build system... + +--- a/build/moz.configure/rust.configure ++++ b/build/moz.configure/rust.configure +@@ -225,7 +225,9 @@ + data.setdefault(key, []).append(namespace(rust_target=t, target=info)) + return data + +- ++@imports('os') ++@imports(_from='mozbuild.util', _import='ensure_unicode') ++@imports(_from='mozbuild.util', _import='system_encoding') + def detect_rustc_target( + host_or_target, compiler_info, arm_target, rust_supported_targets + ): +@@ -340,13 +342,13 @@ + + return None + +- rustc_target = find_candidate(candidates) ++ rustc_target = os.environ['RUST_TARGET'] + + if rustc_target is None: + die("Don't know how to translate {} for rustc".format(host_or_target.alias)) + +- return rustc_target ++ return ensure_unicode(rustc_target, system_encoding) + + + @imports('os') |