Lines Matching full:cflags
101 // Check cFlags of afdo-enabled module and the afdo-variant of its static deps
102 cFlags := libTest.Rule("cc").Args["cFlags"]
103 if !strings.Contains(cFlags, profileSampleCFlag) {
104 …ed 'libTest' to enable afdo profile, but did not find %q in cflags %q", profileSampleCFlag, cFlags)
106 if !strings.Contains(cFlags, uniqueInternalLinkageNamesCFlag) {
107 …("Expected 'libTest' to enable afdo, but did not find %q in cflags %q", profileSampleCFlag, cFlags)
115 cFlags = libFooAfdoVariant.Rule("cc").Args["cFlags"]
116 if !strings.Contains(cFlags, profileSampleCFlag) {
117 …AfdoVariant' to enable afdo profile, but did not find %q in cflags %q", profileSampleCFlag, cFlags)
119 if !strings.Contains(cFlags, uniqueInternalLinkageNamesCFlag) {
120 … 'libFooAfdoVariant' to enable afdo, but did not find %q in cflags %q", profileSampleCFlag, cFlags)
123 cFlags = libBarAfdoVariant.Rule("cc").Args["cFlags"]
124 if !strings.Contains(cFlags, profileSampleCFlag) {
125 …AfdoVariant' to enable afdo profile, but did not find %q in cflags %q", profileSampleCFlag, cFlags)
127 if !strings.Contains(cFlags, uniqueInternalLinkageNamesCFlag) {
128 … 'libBarAfdoVariant' to enable afdo, but did not find %q in cflags %q", profileSampleCFlag, cFlags)
144 cFlags = libFoo.Rule("cc").Args["cFlags"]
145 if strings.Contains(cFlags, profileSampleCFlag) {
146 …pected 'libFoo' to not enable afdo profile, but found %q in cflags %q", profileSampleCFlag, cFlags)
148 if strings.Contains(cFlags, uniqueInternalLinkageNamesCFlag) {
149 …rorf("Expected 'libFoo' to not enable afdo, but found %q in cflags %q", profileSampleCFlag, cFlags)
151 cFlags = libBar.Rule("cc").Args["cFlags"]
152 if strings.Contains(cFlags, profileSampleCFlag) {
153 …pected 'libBar' to not enable afdo profile, but found %q in cflags %q", profileSampleCFlag, cFlags)
155 if strings.Contains(cFlags, uniqueInternalLinkageNamesCFlag) {
156 …rorf("Expected 'libBar' to not enable afdo, but found %q in cflags %q", profileSampleCFlag, cFlags)
173 cFlags = libTest32.Rule("cc").Args["cFlags"]
174 if strings.Contains(cFlags, profileSampleCFlag) {
175 …xpected arm32 'libTest' not to enable afdo, but found %q in cflags %q", profileSampleCFlag, cFlags)
180 if !strings.Contains(cFlags, uniqueInternalLinkageNamesCFlag) {
181 …pected arm32 'libTest' to enable -funique-internal-linkage-names but did not find %q in cflags %q",
182 uniqueInternalLinkageNamesCFlag, cFlags)
202 cFlags = libFooAfdoVariant32.Rule("cc").Args["cFlags"]
203 if strings.Contains(cFlags, profileSampleCFlag) {
204 …ibFoo' to not enable afdo profile, but found %q in cflags %q", uniqueInternalLinkageNamesCFlag, cF…
206 if !strings.Contains(cFlags, uniqueInternalLinkageNamesCFlag) {
207 …32 'libFoo' to enable afdo, but did not find %q in cflags %q", uniqueInternalLinkageNamesCFlag, cF…
209 cFlags = libBarAfdoVariant32.Rule("cc").Args["cFlags"]
210 if strings.Contains(cFlags, profileSampleCFlag) {
211 …ibBar' to not enable afdo profile, but found %q in cflags %q", uniqueInternalLinkageNamesCFlag, cF…
213 if !strings.Contains(cFlags, uniqueInternalLinkageNamesCFlag) {
214 …32 'libBar' to enable afdo, but did not find %q in cflags %q", uniqueInternalLinkageNamesCFlag, cF…
222 cFlags = libTestHost.Rule("cc").Args["cFlags"]
223 if strings.Contains(cFlags, profileSampleCFlag) {
224 … host 'libTest' to not enable afdo profile, but found %q in cflags %q", profileSampleCFlag, cFlags)
227 if strings.Contains(cFlags, uniqueInternalLinkageNamesCFlag) {
228 t.Errorf("Expected host 'libTest' to not enable afdo but found %q in cflags %q",
229 uniqueInternalLinkageNamesCFlag, cFlags)
251 cFlags = libFooHost.Rule("cc").Args["cFlags"]
252 if strings.Contains(cFlags, profileSampleCFlag) {
253 …ibFoo' to not enable afdo profile, but found %q in cflags %q", uniqueInternalLinkageNamesCFlag, cF…
255 if strings.Contains(cFlags, uniqueInternalLinkageNamesCFlag) {
256 … host 'libFoo' to not enable afdo, but found %q in cflags %q", uniqueInternalLinkageNamesCFlag, cF…
258 cFlags = libBarHost.Rule("cc").Args["cFlags"]
259 if strings.Contains(cFlags, profileSampleCFlag) {
260 …ibBar' to not enable afdo profile, but found %q in cflags %q", uniqueInternalLinkageNamesCFlag, cF…
262 if strings.Contains(cFlags, uniqueInternalLinkageNamesCFlag) {
263 … host 'libBar' to not enable afdo, but found %q in cflags %q", uniqueInternalLinkageNamesCFlag, cF…
323 cFlags := libFoo.Rule("cc").Args["cFlags"]
324 if w := "-fprofile-sample-accurate"; strings.Contains(cFlags, w) {
325 t.Errorf("Expected 'foo' to not enable afdo, but found %q in cflags %q", w, cFlags)
416 fooArmCFlags := fooArm.Rule("cc").Args["cFlags"]
418 t.Errorf("Expected 'foo' to enable afdo, but did not find %q in cflags %q", w, fooArmCFlags)
422 fooArm64CFlags := fooArm64.Rule("cc").Args["cFlags"]
424 t.Errorf("Expected 'foo' to enable afdo, but did not find %q in cflags %q", w, fooArm64CFlags)
485 // Check cFlags of afdo-enabled module and the afdo-variant of its static deps
486 cFlags := libTest.Rule("cc").Args["cFlags"]
487 if !strings.Contains(cFlags, expectedCFlagLibTest) {
488 …Expected 'libTest' to enable afdo, but did not find %q in cflags %q", expectedCFlagLibTest, cFlags)
490 cFlags = libBar.Rule("cc").Args["cFlags"]
491 if !strings.Contains(cFlags, expectedCFlagLibBar) {
492 …"Expected 'libTest' to enable afdo, but did not find %q in cflags %q", expectedCFlagLibBar, cFlags)
495 cFlags = libFooAfdoVariantWithLibTest.Rule("cc").Args["cFlags"]
496 if !strings.Contains(cFlags, expectedCFlagLibTest) {
497 …ariantWithLibTest' to enable afdo, but did not find %q in cflags %q", expectedCFlagLibTest, cFlags)
500 cFlags = libFooAfdoVariantWithLibBar.Rule("cc").Args["cFlags"]
501 if !strings.Contains(cFlags, expectedCFlagLibBar) {
502 …'libBarAfdoVariant' to enable afdo, but did not find %q in cflags %q", expectedCFlagLibBar, cFlags)
550 // Check cFlags of afdo-enabled module and the afdo-variant of its static deps
551 cFlags := libTest.Rule("cc").Args["cFlags"]
552 if !strings.Contains(cFlags, expectedCFlag) {
553 …rrorf("Expected 'libTest' to enable afdo, but did not find %q in cflags %q", expectedCFlag, cFlags)
556 cFlags = libFooAfdoVariant.Rule("cc").Args["cFlags"]
557 if !strings.Contains(cFlags, expectedCFlag) {
558 …ected 'libFooAfdoVariant' to enable afdo, but did not find %q in cflags %q", expectedCFlag, cFlags)
561 cFlags = libBarAfdoVariant.Rule("cc").Args["cFlags"]
562 if !strings.Contains(cFlags, expectedCFlag) {
563 …ected 'libBarAfdoVariant' to enable afdo, but did not find %q in cflags %q", expectedCFlag, cFlags)
578 cFlags = libFoo.Rule("cc").Args["cFlags"]
579 if strings.Contains(cFlags, expectedCFlag) {
580 t.Errorf("Expected 'libFoo' to not enable afdo, but found %q in cflags %q", expectedCFlag, cFlags)
582 cFlags = libBar.Rule("cc").Args["cFlags"]
583 if strings.Contains(cFlags, expectedCFlag) {
584 t.Errorf("Expected 'libBar' to not enable afdo, but found %q in cflags %q", expectedCFlag, cFlags)