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

Commit d8103127 authored by Yi Kong's avatar Yi Kong Committed by Gerrit Code Review
Browse files

Merge "Add "-no-warn-sample-unuse=true" to work around AutoFDO issue"

parents af013338 92474e5b
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -177,6 +177,10 @@ func (props *PgoProperties) addProfileUseFlags(ctx ModuleContext, flags Flags) F
		// if profileFile gets updated
		flags.CFlagsDeps = append(flags.CFlagsDeps, profileFilePath)
		flags.LdFlagsDeps = append(flags.LdFlagsDeps, profileFilePath)

		if props.isSampling() {
			flags.Local.LdFlags = append(flags.Local.LdFlags, "-Wl,-mllvm,-no-warn-sample-unused=true")
		}
	}
	return flags
}