diff options
author | 2017-12-20 08:10:21 -0800 | |
---|---|---|
committer | 2017-12-20 09:17:54 -0800 | |
commit | 8e3afccd8bea45105752ddeb33bde111c556fb8b (patch) | |
tree | 05042e2f8958acddaeb7b5defe358f173e927db3 /src/test | |
parent | de65ce90a648776788ac2fb0e7267e58163db501 (diff) |
Support for ThinLTO to be enabled implicitly with AFDO
Allows for ThinLTO to be enabled once the --features=autofdo_implicit_thinlto feature is enabled in the crosstool. Also allows for --features=-thin_lto to override and prevent ThinLTO from being enabled.
RELNOTES: None.
PiperOrigin-RevId: 179687743
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/java/com/google/devtools/build/lib/packages/util/MockCcSupport.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/java/com/google/devtools/build/lib/packages/util/MockCcSupport.java b/src/test/java/com/google/devtools/build/lib/packages/util/MockCcSupport.java index c7a78d4fe3..97dea9ce93 100644 --- a/src/test/java/com/google/devtools/build/lib/packages/util/MockCcSupport.java +++ b/src/test/java/com/google/devtools/build/lib/packages/util/MockCcSupport.java @@ -358,6 +358,17 @@ public abstract class MockCcSupport { public static final String THIN_LTO_LINKSTATIC_TESTS_USE_SHARED_NONLTO_BACKENDS_CONFIGURATION = "" + "feature { name: 'thin_lto_linkstatic_tests_use_shared_nonlto_backends'}"; + public static final String ENABLE_AFDO_THINLTO_CONFIGURATION = + "" + + "feature {" + + " name: 'enable_afdo_thinlto'" + + " requires { feature: 'autofdo_implicit_thinlto' }" + + " implies: 'thin_lto'" + + "}"; + + public static final String AUTOFDO_IMPLICIT_THINLTO_CONFIGURATION = + "" + "feature { name: 'autofdo_implicit_thinlto'}"; + public static final String AUTO_FDO_CONFIGURATION = "" + "feature {" |