mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 15:23:51 +00:00
Bug 1444171: Make clang-cl work with OBJS_VAR_SUFFIX as well; r=gps
This commit is contained in:
parent
2d44c25242
commit
9bf1ff2b31
@ -422,14 +422,14 @@ OBJ_SUFFIX := $(_OBJ_SUFFIX)
|
||||
|
||||
OBJS_VAR_SUFFIX := OBJS
|
||||
|
||||
# PGO builds with GCC build objects with instrumentation in a first pass,
|
||||
# then objects optimized, without instrumentation, in a second pass. If
|
||||
# we overwrite the objects from the first pass with those from the second,
|
||||
# we end up not getting instrumentation data for better optimization on
|
||||
# incremental builds. As a consequence, we use a different object suffix
|
||||
# for the first pass.
|
||||
# PGO builds with GCC and clang-cl build objects with instrumentation in
|
||||
# a first pass, then objects optimized, without instrumentation, in a
|
||||
# second pass. If we overwrite the objects from the first pass with
|
||||
# those from the second, we end up not getting instrumentation data for
|
||||
# better optimization on incremental builds. As a consequence, we use a
|
||||
# different object suffix for the first pass.
|
||||
ifdef MOZ_PROFILE_GENERATE
|
||||
ifdef GNU_CC
|
||||
ifneq (,$(GNU_CC)$(CLANG_CL))
|
||||
OBJS_VAR_SUFFIX := PGO_OBJS
|
||||
ifndef NO_PROFILE_GUIDED_OPTIMIZE
|
||||
OBJ_SUFFIX := i_o
|
||||
|
Loading…
Reference in New Issue
Block a user