mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 21:31:04 +00:00
Backed out changeset b8c7842e8b1a (bug 1512806) for Windows 2012 bustages complaning about gen_cflags CLOSED TREE
This commit is contained in:
parent
de6fb7d842
commit
67efae6a76
@ -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=[],
|
||||
|
Loading…
Reference in New Issue
Block a user