Backed out changeset b8c7842e8b1a (bug 1512806) for Windows 2012 bustages complaning about gen_cflags CLOSED TREE

This commit is contained in:
Bogdan Tara 2019-02-22 05:10:46 +02:00
parent de6fb7d842
commit 67efae6a76

View File

@ -1435,23 +1435,13 @@ def pgo_flags(compiler, build_env, target):
else:
gen_ldflags = None
else:
if target.os == 'Android':
gen_cflags = ['-fprofile-generate=/data/local/tmp']
gen_ldflags = ['-fprofile-generate=/data/local/tmp']
else:
gen_ldflags = ['-fprofile-instr-generate']
gen_cflags = ['-fprofile-instr-generate']
gen_ldflags = ['-fprofile-instr-generate']
if gen_ldflags:
if target.os == 'Android':
use_flag = '-fprofile-use'
else:
use_flag = '-fprofile-instr-use'
return namespace(
gen_cflags=gen_cflags,
gen_cflags=['-fprofile-instr-generate'],
gen_ldflags=gen_ldflags,
use_cflags=['%s=%s' % (use_flag, profdata),
use_cflags=['-fprofile-instr-use=%s' % profdata,
'-Wno-error=profile-instr-out-of-date',
'-Wno-error=profile-instr-unprofiled'],
use_ldflags=[],