2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-22 18:07:12 +01:00

Keep winres flags in subsequent detections #1908

This commit is contained in:
Thomas Nagy 2017-02-11 23:33:57 +01:00
parent b7d93c3c4d
commit ee98328c2f
No known key found for this signature in database
GPG Key ID: 49B4C67C05277AAA

View File

@ -65,10 +65,6 @@ def configure(conf):
Detects the programs RC or windres, depending on the C/C++ compiler in use
"""
v = conf.env
v.WINRC_TGT_F = '-o'
v.WINRC_SRC_F = '-i'
# find rc.exe
if not v.WINRC:
if v.CC_NAME == 'msvc':
conf.find_program('RC', var='WINRC', path_list=v.PATH)
@ -76,6 +72,6 @@ def configure(conf):
v.WINRC_SRC_F = ''
else:
conf.find_program('windres', var='WINRC', path_list=v.PATH)
if not v.WINRC:
conf.fatal('winrc was not found!')
v.WINRC_TGT_F = '-o'
v.WINRC_SRC_F = '-i'