Bug 1163077 - Never elfhack if --disable-compile-environment is set. r=glandium

A host elfhack binary is only built when there is a compile environment.

--HG--
extra : rebase_source : 4f1da429c581dfd81cbe3d5164c7586066cf6e79
extra : amend_source : f26fe7f3b44291f38459a81b9ff31bd6dbd220aa
extra : histedit_source : 93c628a500c66c46d522bfe678500bf5b5bf0de9
This commit is contained in:
Nick Alexander 2015-05-08 11:40:06 -07:00
parent 824af68825
commit c688992859

View File

@ -105,8 +105,9 @@ def may_elfhack(path):
# elfhack only supports libraries. We should check the ELF header for
# the right flag, but checking the file extension works too.
from buildconfig import substs
return 'USE_ELF_HACK' in substs and substs['USE_ELF_HACK'] and \
path.endswith(substs['DLL_SUFFIX'])
return ('USE_ELF_HACK' in substs and substs['USE_ELF_HACK'] and
path.endswith(substs['DLL_SUFFIX']) and
'COMPILE_ENVIRONMENT' in substs and substs['COMPILE_ENVIRONMENT'])
def elfhack(path):