Bug 1382364 - Do not fail the build when the linker is unknown. r?glandium
Instead, tag it as 'other'
MozReview-Commit-ID: 1yyLuMKkR7a
--- 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)