Bug 1382364 - Do not fail the build when the linker is unknown. r=glandium
authorSylvestre Ledru <sledru@mozilla.com>
Fri, 21 Jul 2017 10:03:30 +0200
changeset 421820 e7613d8dfb7cc5cb04c47342782077b9a57edcbb
parent 421819 0e7ce13991ca8821d6f8efa57eb56857860f6b6b
child 421821 b1f588a6e1fa689935dcbece36a47b74f73ce085
push id1517
push userjlorenzo@mozilla.com
push dateThu, 14 Sep 2017 16:50:54 +0000
treeherdermozilla-release@3b41fd564418 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersglandium
bugs1382364
milestone56.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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)