aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/rules/cpp/FdoSupport.java
diff options
context:
space:
mode:
authorGravatar Lukacs Berki <lberki@google.com>2015-06-29 07:48:59 +0000
committerGravatar Damien Martin-Guillerez <dmarting@google.com>2015-06-29 16:39:38 +0000
commitcf49294141665da4f4d005610c816fc591c08c22 (patch)
tree91d6c466f5b2c5c0c74fd1db66ca63ec82ae4a22 /src/main/java/com/google/devtools/build/lib/rules/cpp/FdoSupport.java
parent4313d37941a4c8196af112e9bf3b22d6c366d3cc (diff)
Remove BuildConfiguration.cacheKey() and replace .shortCacheKey() with a .checksum() method that is computed from the checksum of the build options. Also remove Fragment.cacheKey() and Fragment.getName().
The reasoning is that within a single build, if two BuildConfigurations share the same BuildOptions, they must be the same because BuildConfiguration can only be a function of BuildOptions, specific targets (which stay the same during a build) and BlazeDirectories (which stay the same during the lifetime of a server). Between different builds if the configurations are recreated, they will always be considered different because Java reference equality (==) is used for comparing BuildConfigurations. Also remove "Serializable" tags from configuration-related things. -- MOS_MIGRATED_REVID=97107881
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/rules/cpp/FdoSupport.java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/rules/cpp/FdoSupport.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/cpp/FdoSupport.java b/src/main/java/com/google/devtools/build/lib/rules/cpp/FdoSupport.java
index 6474d7f01d..c425820565 100644
--- a/src/main/java/com/google/devtools/build/lib/rules/cpp/FdoSupport.java
+++ b/src/main/java/com/google/devtools/build/lib/rules/cpp/FdoSupport.java
@@ -43,7 +43,6 @@ import com.google.devtools.build.lib.view.config.crosstool.CrosstoolConfig.LipoM
import com.google.devtools.build.skyframe.SkyFunction;
import java.io.IOException;
-import java.io.Serializable;
import java.util.Collection;
import java.util.HashSet;
import java.util.zip.ZipException;
@@ -113,7 +112,7 @@ import java.util.zip.ZipException;
* {@code CachingAnalysisEnvironment.allowRegisteringActions}, which causes actions to be silently
* discarded after configured targets are created.
*/
-public class FdoSupport implements Serializable {
+public class FdoSupport {
/**
* Path within profile data .zip files that is considered the root of the