[gnome-sdk-images/wip/tvb/aarch64: 6/9] mozjs24: Tuning for i386 and arm builds



commit a7ade429ba6f88bc6074f6ffbd8f0b25aabc54cd
Author: Tristan Van Berkom <tristan vanberkom codethink co uk>
Date:   Tue May 3 19:09:46 2016 -0400

    mozjs24: Tuning for i386 and arm builds
    
    This module generates target dependent assembly code
    and as such must be informed of the target triple. Failing
    to do so can result in generation of x86_64 specific instructions
    when targetting i386.
    
    Note: on i386 we specify i586-unknown-linux-gnu because that is
    the triple of the compiler we have in the base runtime.

 org.gnome.Sdk.json.in |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/org.gnome.Sdk.json.in b/org.gnome.Sdk.json.in
index 6bb1d29..cc688e0 100644
--- a/org.gnome.Sdk.json.in
+++ b/org.gnome.Sdk.json.in
@@ -512,6 +512,20 @@
         },
         {
             "name": "mozjs24",
+            "build-options" : {
+                "arch" : {
+                    "i386" : {
+                        "config-opts" : [
+                            "--host=i586-unknown-linux-gnu"
+                        ]
+                    },
+                   "arm" : {
+                        "config-opts" : [
+                            "--host=arm-unknown-linux-gnueabi"
+                       ]
+                   }
+                }
+            },
             "config-opts": [  "--disable-static",
                               "--with-system-nspr",
                               "--enable-threadsafe",


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]