Skip to content

Commit

Permalink
Bug 1483779 - Enable PGO on clang-cl 32-bits builds. r=dmajor
Browse files Browse the repository at this point in the history
  • Loading branch information
glandium committed Aug 17, 2018
1 parent 04306c7 commit 80eac84
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 0 additions & 3 deletions Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -311,11 +311,8 @@ else
ifneq ($(CC_TYPE),msvc)
maybe_clobber_profiledbuild: clean
ifneq (,$(findstring clang,$(CC_TYPE)))
# 32-bit Windows PGO is currently blocked by bug 1479800
ifneq ($(CC_TYPE)_$(CPU_ARCH),clang-cl_x86)
$(LLVM_PROFDATA) merge -o $(DEPTH)/merged.profdata $(DEPTH)/*.profraw
endif
endif
else
maybe_clobber_profiledbuild:
$(RM) $(DIST)/bin/*.pgc
Expand Down
3 changes: 2 additions & 1 deletion build/moz.configure/toolchain.configure
Original file line number Diff line number Diff line change
Expand Up @@ -1262,9 +1262,10 @@ def pgo_flags(compiler, build_env, target):
if compiler.type in ('clang-cl', 'clang'):
profdata = os.path.join(topobjdir, 'merged.profdata')
if compiler.type == 'clang-cl':
# 32-bit PGO is currently blocked by bug 1479800
if target.cpu == 'x86_64':
gen_ldflags = ['clang_rt.profile-x86_64.lib']
elif target.cpu == 'x86':
gen_ldflags = ['clang_rt.profile-i386.lib']
else:
gen_ldflags = None
else:
Expand Down

0 comments on commit 80eac84

Please sign in to comment.