Override the msvc linker through LINK_CXX

This commit is contained in:
Thomas Nagy 2017-08-25 20:23:16 +02:00
parent 0659657a8c
commit b3e9ca89e6
No known key found for this signature in database
GPG Key ID: 49B4C67C05277AAA
1 changed files with 1 additions and 2 deletions

View File

@ -852,8 +852,7 @@ def find_msvc(conf):
# linker
if not v.LINK_CXX:
# TODO: var=LINK_CXX to let so that LINK_CXX can be overridden?
v.LINK_CXX = conf.find_program(linker_name, path_list=path, errmsg='%s was not found (linker)' % linker_name)
conf.find_program(linker_name, path_list=path, errmsg='%s was not found (linker)' % linker_name, var='LINK_CXX')
if not v.LINK_CC:
v.LINK_CC = v.LINK_CXX