Bug 1382364 - Do not fail the build when the linker is unknown. r?glandium draft
authorSylvestre Ledru <sledru@mozilla.com>
Fri, 21 Jul 2017 09:57:51 +0200
changeset 612926 8706f35eb04259bf799a2ece406de348d67075cb
parent 612925 6617b0f685deacfd3627d90eabe9194177a53326
child 638547 59795458ce94093708876178cfc2272ab9892e64
push id69651
push userbmo:sledru@mozilla.com
push dateFri, 21 Jul 2017 07:58:19 +0000
reviewersglandium
bugs1382364
milestone56.0a1
Bug 1382364 - Do not fail the build when the linker is unknown. r?glandium Instead, tag it as 'other' MozReview-Commit-ID: 8Tf5u7kNRxD
build/moz.configure/toolchain.configure
--- a/build/moz.configure/toolchain.configure
+++ b/build/moz.configure/toolchain.configure
@@ -1157,13 +1157,14 @@ def enable_gold(enable_gold_option, c_co
         )
 
     # Special case for Android. In the ndk, it is gold
     if 'GNU gold' in cmd_output:
         return namespace(
             KIND='gold'
         )
 
-    die("Could not find any linker")
-
+    return namespace(
+        KIND='other'
+    )
 
 set_config('LD_IS_BFD', depends(enable_gold.KIND)(lambda x: x == 'bfd' or None))
 set_config('LINKER_LDFLAGS', enable_gold.LINKER_FLAG)