diff --git a/cc/config/x86_windows_host.go b/cc/config/x86_windows_host.go index 43e8c85e8..cd0a50837 100644 --- a/cc/config/x86_windows_host.go +++ b/cc/config/x86_windows_host.go @@ -58,8 +58,11 @@ var ( "-Wl,--dynamicbase", "-Wl,--nxcompat", } + windowsLldflags = []string{ + "-Wl,--Xlink=-Brepro", // Enable deterministic build + } windowsClangLdflags = append(ClangFilterUnknownCflags(windowsLdflags), []string{}...) - windowsClangLldflags = ClangFilterUnknownLldflags(windowsClangLdflags) + windowsClangLldflags = append(ClangFilterUnknownLldflags(windowsClangLdflags), windowsLldflags...) windowsX86Cflags = []string{ "-m32",