Bug 1382364 - Do not fail the build when the linker is unknown. r?glandium draft
authorSylvestre Ledru <sledru@mozilla.com>
Fri, 21 Jul 2017 10:03:30 +0200
changeset 612927 5c2fd97f164519dfe11107f585418ab8a70877da
parent 612925 6617b0f685deacfd3627d90eabe9194177a53326
child 612998 22e0390fadac91b21e8a9290dcfda051a209c5d5
child 612999 750d60d22e0589d8568682a4c8164e55ce697f02
child 613400 b2756c7e79d52ff17ec19cb2a6db4d0fc54cd716
push id69652
push userbmo:sledru@mozilla.com
push dateFri, 21 Jul 2017 08:03:56 +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: 1yyLuMKkR7a
build/moz.configure/toolchain.configure
--- a/build/moz.configure/toolchain.configure
+++ b/build/moz.configure/toolchain.configure
@@ -1157,13 +1157,15 @@ 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")
-
+    # For other platforms without gold or the GNU 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)