Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dd753116 authored by Yi Kong's avatar Yi Kong
Browse files

Pass -Brepro ldflag to Windows builds

The default build-id is generated using timestamp. Pass -Brepro to
avoid using timestamp for deterministic build.

Bug: 153462962
Test: build fastboot.exe twice, got same shasum
Change-Id: I38fe993eec23c60bfcf1b76188774bfe06839fa4
Merged-In: I38fe993eec23c60bfcf1b76188774bfe06839fa4
(cherry picked from commit a3c22e7e)
Exempt-From-Owner-Approval: backport
parent b4d816e0
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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",