aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google
diff options
context:
space:
mode:
authorGravatar Manuel Klimek <klimek@google.com>2015-02-20 18:02:53 +0000
committerGravatar Han-Wen Nienhuys <hanwen@google.com>2015-02-20 18:02:53 +0000
commite0b863e3b385c14269e795fdb6a0f8b16c7579b2 (patch)
tree79f375029fc7d4a67683715ca6eec27ae2ad1598 /src/main/java/com/google
parent4f7c16ad32dc1a4923149b60ada19ef43b52035e (diff)
Fix bug when using header modules and FDO with --save_temps.
-- MOS_MIGRATED_REVID=86797852
Diffstat (limited to 'src/main/java/com/google')
-rw-r--r--src/main/java/com/google/devtools/build/lib/rules/cpp/CppCompileActionBuilder.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/cpp/CppCompileActionBuilder.java b/src/main/java/com/google/devtools/build/lib/rules/cpp/CppCompileActionBuilder.java
index 9fbee1f502..5c1a5e9faf 100644
--- a/src/main/java/com/google/devtools/build/lib/rules/cpp/CppCompileActionBuilder.java
+++ b/src/main/java/com/google/devtools/build/lib/rules/cpp/CppCompileActionBuilder.java
@@ -79,6 +79,7 @@ public class CppCompileActionBuilder {
private Class<? extends CppCompileActionContext> actionContext;
private CppConfiguration cppConfiguration;
private ImmutableMap<Artifact, IncludeScannable> lipoScannableMap;
+ // New fields need to be added to the copy constructor.
/**
* Creates a builder from a rule. This also uses the configuration and
@@ -159,6 +160,8 @@ public class CppCompileActionBuilder {
this.actionClassId = other.actionClassId;
this.actionContext = other.actionContext;
this.cppConfiguration = other.cppConfiguration;
+ this.fdoBuildStamp = other.fdoBuildStamp;
+ this.usePic = other.usePic;
this.lipoScannableMap = other.lipoScannableMap;
}