Bug 1522771: Use -brepro to build clang-plugin.dll deterministically. r=mshal
authorDavid Major <dmajor@mozilla.com>
Fri, 25 Jan 2019 11:09:13 -0500
changeset 515483 0d3146dfec52fb00762d930f31e3f97ae86fab43
parent 515482 ae75df426f3d28a843841b2f834689c1c3e68d8f
child 515484 a65e39af3ad6f2be83f7ebde6d5a2c75c563acdc
push id1953
push userffxbld-merge
push dateMon, 11 Mar 2019 12:10:20 +0000
treeherdermozilla-release@9c35dcbaa899 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmshal
bugs1522771
milestone66.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1522771: Use -brepro to build clang-plugin.dll deterministically. r=mshal
build/clang-plugin/Makefile.in
--- a/build/clang-plugin/Makefile.in
+++ b/build/clang-plugin/Makefile.in
@@ -1,16 +1,19 @@
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
 include $(topsrcdir)/config/config.mk
 
 HOST_LDFLAGS := $(LLVM_LDFLAGS) $(CLANG_LDFLAGS)
 
-ifneq ($(HOST_OS_ARCH),WINNT)
+ifeq ($(HOST_OS_ARCH),WINNT)
+# clang-plugin.dll needs to be deterministic for sccache hashes
+HOST_LDFLAGS += -brepro
+else
 HOST_LDFLAGS += -shared
 endif
 
 # Use the default OS X deployment target to enable using the libc++ headers
 # correctly.  Note that the binary produced here is a host tool and doesn't need
 # to be distributed.
 MACOSX_DEPLOYMENT_TARGET :=