From 2a0bb37397e1354eaf06b7697913f71443332175 Mon Sep 17 00:00:00 2001 From: Googler Date: Wed, 15 Feb 2017 11:36:22 +0000 Subject: 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 --- .../google/devtools/build/lib/packages/util/MockCcSupport.java | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/test/java/com') 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'" -- cgit v1.2.3