jdonald / firefox-armhf

because we don't need to leave this broken for another year
https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/1711337
12 stars 1 forks source link

updated clang patch for 66.0 #1

Open stefson opened 5 years ago

stefson commented 5 years ago

I adopted your patch for my cross compile attempts, so here's the same patch, but rebased for 66.0

have fun :)

diff --git a/servo/components/style/build_gecko.rs b/servo/components/style/build_gecko.rs
index 734d095..d4ead97 100644
--- a/servo/components/style/build_gecko.rs
+++ b/servo/components/style/build_gecko.rs
@@ -141,7 +141,10 @@ mod bindings {
             // them.
             let mut builder = Builder::default()
                 .rust_target(RustTarget::Stable_1_25)
-                .disable_untagged_union();
+                .disable_untagged_union()
+                .clang_arg("-target")
+                .clang_arg("armv7a-unknown-linux-gnueabihf");
+

             let rustfmt_path = env::var_os("RUSTFMT")
                 // This can be replaced with
jdonald commented 5 years ago

Thanks @stefson for helping out here. I see now that my repo is out-of-date even more now that Firefox 68.0.1 was released this month, but I'm glad you tracked down a few of the things that have broken so that I won't have to.