diff options
author | 2017-12-20 08:10:21 -0800 | |
---|---|---|
committer | 2017-12-20 09:17:54 -0800 | |
commit | 8e3afccd8bea45105752ddeb33bde111c556fb8b (patch) | |
tree | 05042e2f8958acddaeb7b5defe358f173e927db3 /src/main/java/com/google/devtools/build/lib/rules/cpp/CppRuleClasses.java | |
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/main/java/com/google/devtools/build/lib/rules/cpp/CppRuleClasses.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/rules/cpp/CppRuleClasses.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/cpp/CppRuleClasses.java b/src/main/java/com/google/devtools/build/lib/rules/cpp/CppRuleClasses.java index ed54a38f70..af37c28c56 100644 --- a/src/main/java/com/google/devtools/build/lib/rules/cpp/CppRuleClasses.java +++ b/src/main/java/com/google/devtools/build/lib/rules/cpp/CppRuleClasses.java @@ -287,6 +287,16 @@ public class CppRuleClasses { */ public static final String THIN_LTO = "thin_lto"; + /* + * A string constant for allowing implicit ThinLTO enablement for AFDO. + */ + public static final java.lang.String AUTOFDO_IMPLICIT_THINLTO = "autofdo_implicit_thinlto"; + + /* + * A string constant for enabling ThinLTO for AFDO implicitly. + */ + public static final java.lang.String ENABLE_AFDO_THINLTO = "enable_afdo_thinlto"; + /** * A string constant for allowing use of shared LTO backend actions for linkstatic tests building * with ThinLTO. |