aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/test/java/com
diff options
context:
space:
mode:
authorGravatar Googler <noreply@google.com>2017-02-15 11:36:22 +0000
committerGravatar Dmitry Lomov <dslomov@google.com>2017-02-15 14:47:17 +0000
commit2a0bb37397e1354eaf06b7697913f71443332175 (patch)
tree75ad613bc8b33b980ff94211e69d0a31c4ce9633 /src/test/java/com
parent1aa0b96b8b57ca63a42bbe86657c0b9f23fee065 (diff)
Early support for code generation directly from C++ module files. This can
potentially reduce the linker input. The content of a C++ module (specifically the inline definitions) is currently put into every single .o file that uses them and thus can be input to the same final link many times. By generating a separate .o file for the module itself, we can avoid this unnecessary duplication of linker input. -- PiperOrigin-RevId: 147579947 MOS_MIGRATED_REVID=147579947
Diffstat (limited to 'src/test/java/com')
-rw-r--r--src/test/java/com/google/devtools/build/lib/packages/util/MockCcSupport.java10
1 files changed, 10 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 6f8f136fd4..1441289562 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
@@ -110,6 +110,16 @@ public abstract class MockCcSupport {
+ " flag: '--woohoo_modules'"
+ " }"
+ " }"
+ + " flag_set {"
+ + " action: 'c++-module-codegen'"
+ + " flag_group {"
+ + " flag: '--this_is_modules_codegen'"
+ + " }"
+ + " }"
+ + "}"
+ + "feature {"
+ + " name: 'header_module_codegen'"
+ + " implies: 'header_modules'"
+ "}"
+ "feature {"
+ " name: 'module_maps'"