diff options
author | hlopko <hlopko@google.com> | 2017-04-27 17:37:31 +0200 |
---|---|---|
committer | Vladimir Moskva <vladmos@google.com> | 2017-04-28 01:00:52 +0200 |
commit | 21903f9ee78c42b55fd7954701aafcc65dcfcb11 (patch) | |
tree | 3c3de7d7b88ca35535d8473f403f7f4a5d37c6d8 /src/main/java/com/google/devtools | |
parent | d89d3974bce2b8bf44a40bfe7b6b56cc9d703c93 (diff) |
Reformat Bazel crosstools to have consistent 2 spaces indent
RELNOTES: None.
PiperOrigin-RevId: 154426101
Diffstat (limited to 'src/main/java/com/google/devtools')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/rules/cpp/CppActionConfigs.java | 858 |
1 files changed, 429 insertions, 429 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/cpp/CppActionConfigs.java b/src/main/java/com/google/devtools/build/lib/rules/cpp/CppActionConfigs.java index 653058fd3a..6447a774b8 100644 --- a/src/main/java/com/google/devtools/build/lib/rules/cpp/CppActionConfigs.java +++ b/src/main/java/com/google/devtools/build/lib/rules/cpp/CppActionConfigs.java @@ -42,15 +42,15 @@ public class CppActionConfigs { cppDynamicLibraryLinkerTool = "" + "feature {" - + " name: 'dynamic_library_linker_tool'" - + " flag_set {" - + " action: 'c++-link-dynamic-library'" - + " flag_group {" - + " flag: '" + + " name: 'dynamic_library_linker_tool'" + + " flag_set {" + + " action: 'c++-link-dynamic-library'" + + " flag_group {" + + " flag: '" + linkerToolPath + "'" - + " }" - + " }" + + " }" + + " }" + "}"; } @@ -58,500 +58,500 @@ public class CppActionConfigs { .join( ImmutableList.of( "action_config {", - " config_name: 'assemble'", - " action_name: 'assemble'", - " tool {", - " tool_path: '" + gccToolPath + "'", - " }", + " config_name: 'assemble'", + " action_name: 'assemble'", + " tool {", + " tool_path: '" + gccToolPath + "'", + " }", "}", "action_config {", - " config_name: 'preprocess-assemble'", - " action_name: 'preprocess-assemble'", - " tool {", - " tool_path: '" + gccToolPath + "'", - " }", + " config_name: 'preprocess-assemble'", + " action_name: 'preprocess-assemble'", + " tool {", + " tool_path: '" + gccToolPath + "'", + " }", "}", "action_config {", - " config_name: 'c-compile'", - " action_name: 'c-compile'", - " tool {", - " tool_path: '" + gccToolPath + "'", - " }", + " config_name: 'c-compile'", + " action_name: 'c-compile'", + " tool {", + " tool_path: '" + gccToolPath + "'", + " }", "}", "action_config {", - " config_name: 'c++-compile'", - " action_name: 'c++-compile'", - " tool {", - " tool_path: '" + gccToolPath + "'", - " }", + " config_name: 'c++-compile'", + " action_name: 'c++-compile'", + " tool {", + " tool_path: '" + gccToolPath + "'", + " }", "}", "action_config {", - " config_name: 'c++-header-parsing'", - " action_name: 'c++-header-parsing'", - " tool {", - " tool_path: '" + gccToolPath + "'", - " }", + " config_name: 'c++-header-parsing'", + " action_name: 'c++-header-parsing'", + " tool {", + " tool_path: '" + gccToolPath + "'", + " }", "}", "action_config {", - " config_name: 'c++-header-preprocessing'", - " action_name: 'c++-header-preprocessing'", - " tool {", - " tool_path: '" + gccToolPath + "'", - " }", + " config_name: 'c++-header-preprocessing'", + " action_name: 'c++-header-preprocessing'", + " tool {", + " tool_path: '" + gccToolPath + "'", + " }", "}", "action_config {", " config_name: 'c++-module-compile'", " action_name: 'c++-module-compile'", " tool {", - " tool_path: '" + gccToolPath + "'", + " tool_path: '" + gccToolPath + "'", " }", "}", "action_config {", " config_name: 'c++-module-codegen'", " action_name: 'c++-module-codegen'", " tool {", - " tool_path: '" + gccToolPath + "'", + " tool_path: '" + gccToolPath + "'", " }", "}", "action_config {", - " config_name: 'c++-link-executable'", - " action_name: 'c++-link-executable'", - " tool {", - " tool_path: 'DUMMY_TOOL'", - " }", - " implies: 'symbol_counts'", - " implies: 'strip_debug_symbols'", - " implies: 'linkstamps'", - " implies: 'output_execpath_flags_executable'", - " implies: 'runtime_library_search_directories'", - " implies: 'library_search_directories'", - " implies: 'libraries_to_link'", - " implies: 'force_pic_flags'", - " implies: 'legacy_link_flags'", - " implies: 'linker_param_file'", - " implies: 'fission_support'", + " config_name: 'c++-link-executable'", + " action_name: 'c++-link-executable'", + " tool {", + " tool_path: 'DUMMY_TOOL'", + " }", + " implies: 'symbol_counts'", + " implies: 'strip_debug_symbols'", + " implies: 'linkstamps'", + " implies: 'output_execpath_flags_executable'", + " implies: 'runtime_library_search_directories'", + " implies: 'library_search_directories'", + " implies: 'libraries_to_link'", + " implies: 'force_pic_flags'", + " implies: 'legacy_link_flags'", + " implies: 'linker_param_file'", + " implies: 'fission_support'", "}", "action_config {", - " config_name: 'c++-link-dynamic-library'", - " action_name: 'c++-link-dynamic-library'", - " tool {", - " tool_path: 'DUMMY_TOOL'", - " }", - " implies: 'build_interface_libraries'", - " implies: 'dynamic_library_linker_tool'", - " implies: 'symbol_counts'", - " implies: 'strip_debug_symbols'", - " implies: 'shared_flag'", - " implies: 'linkstamps'", - " implies: 'output_execpath_flags'", - " implies: 'runtime_library_search_directories'", - " implies: 'library_search_directories'", - " implies: 'libraries_to_link'", - " implies: 'legacy_link_flags'", - " implies: 'linker_param_file'", - " implies: 'fission_support'", + " config_name: 'c++-link-dynamic-library'", + " action_name: 'c++-link-dynamic-library'", + " tool {", + " tool_path: 'DUMMY_TOOL'", + " }", + " implies: 'build_interface_libraries'", + " implies: 'dynamic_library_linker_tool'", + " implies: 'symbol_counts'", + " implies: 'strip_debug_symbols'", + " implies: 'shared_flag'", + " implies: 'linkstamps'", + " implies: 'output_execpath_flags'", + " implies: 'runtime_library_search_directories'", + " implies: 'library_search_directories'", + " implies: 'libraries_to_link'", + " implies: 'legacy_link_flags'", + " implies: 'linker_param_file'", + " implies: 'fission_support'", "}", "action_config {", - " config_name: 'c++-link-static-library'", - " action_name: 'c++-link-static-library'", - " tool {", - " tool_path: 'DUMMY_TOOL'", - " }", - " implies: 'strip_debug_symbols'", - " implies: 'runtime_library_search_directories'", - " implies: 'library_search_directories'", - " implies: 'libraries_to_link'", - " implies: 'linker_param_file'", + " config_name: 'c++-link-static-library'", + " action_name: 'c++-link-static-library'", + " tool {", + " tool_path: 'DUMMY_TOOL'", + " }", + " implies: 'strip_debug_symbols'", + " implies: 'runtime_library_search_directories'", + " implies: 'library_search_directories'", + " implies: 'libraries_to_link'", + " implies: 'linker_param_file'", "}", "action_config {", - " config_name: 'c++-link-alwayslink-static-library'", - " action_name: 'c++-link-alwayslink-static-library'", - " tool {", - " tool_path: 'DUMMY_TOOL'", - " }", - " implies: 'strip_debug_symbols'", - " implies: 'runtime_library_search_directories'", - " implies: 'library_search_directories'", - " implies: 'libraries_to_link'", - " implies: 'linker_param_file'", + " config_name: 'c++-link-alwayslink-static-library'", + " action_name: 'c++-link-alwayslink-static-library'", + " tool {", + " tool_path: 'DUMMY_TOOL'", + " }", + " implies: 'strip_debug_symbols'", + " implies: 'runtime_library_search_directories'", + " implies: 'library_search_directories'", + " implies: 'libraries_to_link'", + " implies: 'linker_param_file'", "}", "action_config {", - " config_name: 'c++-link-pic-static-library'", - " action_name: 'c++-link-pic-static-library'", - " tool {", - " tool_path: 'DUMMY_TOOL'", - " }", - " implies: 'strip_debug_symbols'", - " implies: 'runtime_library_search_directories'", - " implies: 'library_search_directories'", - " implies: 'libraries_to_link'", - " implies: 'linker_param_file'", + " config_name: 'c++-link-pic-static-library'", + " action_name: 'c++-link-pic-static-library'", + " tool {", + " tool_path: 'DUMMY_TOOL'", + " }", + " implies: 'strip_debug_symbols'", + " implies: 'runtime_library_search_directories'", + " implies: 'library_search_directories'", + " implies: 'libraries_to_link'", + " implies: 'linker_param_file'", "}", "action_config {", - " config_name: 'c++-link-alwayslink-pic-static-library'", - " action_name: 'c++-link-alwayslink-pic-static-library'", - " tool {", - " tool_path: 'DUMMY_TOOL'", - " }", - " implies: 'strip_debug_symbols'", - " implies: 'runtime_library_search_directories'", - " implies: 'library_search_directories'", - " implies: 'libraries_to_link'", - " implies: 'linker_param_file'", + " config_name: 'c++-link-alwayslink-pic-static-library'", + " action_name: 'c++-link-alwayslink-pic-static-library'", + " tool {", + " tool_path: 'DUMMY_TOOL'", + " }", + " implies: 'strip_debug_symbols'", + " implies: 'runtime_library_search_directories'", + " implies: 'library_search_directories'", + " implies: 'libraries_to_link'", + " implies: 'linker_param_file'", "}", "feature {", - " name: 'build_interface_libraries'", - " flag_set {", - " expand_if_all_available: 'generate_interface_library'", - " action: 'c++-link-dynamic-library'", - " flag_group {", - " flag: '%{generate_interface_library}'", - " flag: '%{interface_library_builder_path}'", - " flag: '%{interface_library_input_path}'", - " flag: '%{interface_library_output_path}'", - " }", - " }", + " name: 'build_interface_libraries'", + " flag_set {", + " expand_if_all_available: 'generate_interface_library'", + " action: 'c++-link-dynamic-library'", + " flag_group {", + " flag: '%{generate_interface_library}'", + " flag: '%{interface_library_builder_path}'", + " flag: '%{interface_library_input_path}'", + " flag: '%{interface_library_output_path}'", + " }", + " }", "}", // Order of feature declaration matters, cppDynamicLibraryLinkerTool has to follow // right after build_interface_libraries. cppDynamicLibraryLinkerTool, "feature {", - " name: 'symbol_counts'", - " flag_set {", - " expand_if_all_available: 'symbol_counts_output'", - " action: 'c++-link-executable'", - " action: 'c++-link-dynamic-library'", - " flag_group {", - " flag: '-Wl,--print-symbol-counts=%{symbol_counts_output}'", - " }", - " }", + " name: 'symbol_counts'", + " flag_set {", + " expand_if_all_available: 'symbol_counts_output'", + " action: 'c++-link-executable'", + " action: 'c++-link-dynamic-library'", + " flag_group {", + " flag: '-Wl,--print-symbol-counts=%{symbol_counts_output}'", + " }", + " }", "}", "feature {", - " name: 'shared_flag'", - " flag_set {", - " action: 'c++-link-dynamic-library'", - " flag_group {", - " flag: '-shared'", - " }", - " }", + " name: 'shared_flag'", + " flag_set {", + " action: 'c++-link-dynamic-library'", + " flag_group {", + " flag: '-shared'", + " }", + " }", "}", "feature {", - " name: 'linkstamps'", - " flag_set {", - " action: 'c++-link-executable'", - " action: 'c++-link-dynamic-library'", - " expand_if_all_available: 'linkstamp_paths'", - " flag_group {", - " flag: '%{linkstamp_paths}'", - " }", - " }", + " name: 'linkstamps'", + " flag_set {", + " action: 'c++-link-executable'", + " action: 'c++-link-dynamic-library'", + " expand_if_all_available: 'linkstamp_paths'", + " flag_group {", + " flag: '%{linkstamp_paths}'", + " }", + " }", "}", "feature {", - " name: 'output_execpath_flags'", - " flag_set {", - " expand_if_all_available: 'output_execpath'", - " action: 'c++-link-dynamic-library'", - " flag_group {", - " flag: '-o'", - " flag: '%{output_execpath}'", - " }", - " }", + " name: 'output_execpath_flags'", + " flag_set {", + " expand_if_all_available: 'output_execpath'", + " action: 'c++-link-dynamic-library'", + " flag_group {", + " flag: '-o'", + " flag: '%{output_execpath}'", + " }", + " }", "}", "feature {", - " name: 'output_execpath_flags_executable'", - " flag_set {", - " expand_if_all_available: 'output_execpath'", - " action: 'c++-link-executable'", - " flag_group {", - " flag: '-o'", - " }", - " }", - " flag_set {", - " expand_if_all_available: 'skip_mostly_static'", - " expand_if_all_available: 'output_execpath'", - " action: 'c++-link-executable'", - " flag_group {", - " flag: '/dev/null'", - " flag: '-MMD'", - " flag: '-MF'", - " }", - " }", - " flag_set {", - " expand_if_all_available: 'output_execpath'", - " action: 'c++-link-executable'", - " flag_group {", - " flag: '%{output_execpath}'", - " }", - " }", + " name: 'output_execpath_flags_executable'", + " flag_set {", + " expand_if_all_available: 'output_execpath'", + " action: 'c++-link-executable'", + " flag_group {", + " flag: '-o'", + " }", + " }", + " flag_set {", + " expand_if_all_available: 'skip_mostly_static'", + " expand_if_all_available: 'output_execpath'", + " action: 'c++-link-executable'", + " flag_group {", + " flag: '/dev/null'", + " flag: '-MMD'", + " flag: '-MF'", + " }", + " }", + " flag_set {", + " expand_if_all_available: 'output_execpath'", + " action: 'c++-link-executable'", + " flag_group {", + " flag: '%{output_execpath}'", + " }", + " }", "}", "feature {", - " name: 'runtime_library_search_directories',", - " flag_set {", - " expand_if_all_available: 'runtime_library_search_directories'", - " action: 'c++-link-executable'", - " action: 'c++-link-dynamic-library'", - " action: 'c++-link-static-library'", - " action: 'c++-link-alwayslink-static-library'", - " action: 'c++-link-pic-static-library'", - " action: 'c++-link-alwayslink-pic-static-library'", - " flag_group {", - " iterate_over: 'runtime_library_search_directories'", - " flag_group {", + " name: 'runtime_library_search_directories',", + " flag_set {", + " expand_if_all_available: 'runtime_library_search_directories'", + " action: 'c++-link-executable'", + " action: 'c++-link-dynamic-library'", + " action: 'c++-link-static-library'", + " action: 'c++-link-alwayslink-static-library'", + " action: 'c++-link-pic-static-library'", + " action: 'c++-link-alwayslink-pic-static-library'", + " flag_group {", + " iterate_over: 'runtime_library_search_directories'", + " flag_group {", // TODO(b/27153401): This should probably be @loader_path on osx. ifTrue( supportsEmbeddedRuntimes, - " expand_if_all_available: 'is_cc_test_link_action'", - " flag: ", - " '-Wl,-rpath,$EXEC_ORIGIN/%{runtime_library_search_directories}'", - " }", - " flag_group {", - " expand_if_all_available: 'is_not_cc_test_link_action'"), - " flag: '-Wl,-rpath,$ORIGIN/%{runtime_library_search_directories}'", - " }", - " }", - " }", + " expand_if_all_available: 'is_cc_test_link_action'", + " flag: ", + " '-Wl,-rpath,$EXEC_ORIGIN/%{runtime_library_search_directories}'", + " }", + " flag_group {", + " expand_if_all_available: 'is_not_cc_test_link_action'"), + " flag: '-Wl,-rpath,$ORIGIN/%{runtime_library_search_directories}'", + " }", + " }", + " }", "}", "feature {", - " name: 'library_search_directories'", - " flag_set {", - " expand_if_all_available: 'library_search_directories'", - " action: 'c++-link-executable'", - " action: 'c++-link-dynamic-library'", - " action: 'c++-link-static-library'", - " action: 'c++-link-alwayslink-static-library'", - " action: 'c++-link-pic-static-library'", - " action: 'c++-link-alwayslink-pic-static-library'", - " flag_group {", - " iterate_over: 'library_search_directories'", - " flag: '-L%{library_search_directories}'", - " }", - " }", + " name: 'library_search_directories'", + " flag_set {", + " expand_if_all_available: 'library_search_directories'", + " action: 'c++-link-executable'", + " action: 'c++-link-dynamic-library'", + " action: 'c++-link-static-library'", + " action: 'c++-link-alwayslink-static-library'", + " action: 'c++-link-pic-static-library'", + " action: 'c++-link-alwayslink-pic-static-library'", + " flag_group {", + " iterate_over: 'library_search_directories'", + " flag: '-L%{library_search_directories}'", + " }", + " }", "}", "feature {", - " name: 'libraries_to_link'", - " flag_set {", - " expand_if_all_available: 'libraries_to_link'", - " action: 'c++-link-executable'", - " action: 'c++-link-dynamic-library'", - " action: 'c++-link-static-library'", - " action: 'c++-link-alwayslink-static-library'", - " action: 'c++-link-pic-static-library'", - " action: 'c++-link-alwayslink-pic-static-library'", - " flag_group {", - " iterate_over: 'libraries_to_link'", - " flag_group {", - " expand_if_equal: {", - " variable: 'libraries_to_link.type'", - " value: 'object_file_group'", - " }", - " flag: '-Wl,--start-lib'", - " }", + " name: 'libraries_to_link'", + " flag_set {", + " expand_if_all_available: 'libraries_to_link'", + " action: 'c++-link-executable'", + " action: 'c++-link-dynamic-library'", + " action: 'c++-link-static-library'", + " action: 'c++-link-alwayslink-static-library'", + " action: 'c++-link-pic-static-library'", + " action: 'c++-link-alwayslink-pic-static-library'", + " flag_group {", + " iterate_over: 'libraries_to_link'", + " flag_group {", + " expand_if_equal: {", + " variable: 'libraries_to_link.type'", + " value: 'object_file_group'", + " }", + " flag: '-Wl,--start-lib'", + " }", ifLinux( platform, - " flag_group {", - " expand_if_true: 'libraries_to_link.is_whole_archive'", - " flag: '-Wl,-whole-archive'", - " }", - " flag_group {", - " expand_if_equal: {", - " variable: 'libraries_to_link.type'", - " value: 'object_file_group'", - " }", - " iterate_over: 'libraries_to_link.object_files'", - " flag: '%{libraries_to_link.object_files}'", - " }", - " flag_group {", - " expand_if_equal: {", - " variable: 'libraries_to_link.type'", - " value: 'object_file'", - " }", - " flag: '%{libraries_to_link.name}'", - " }", - " flag_group {", - " expand_if_equal: {", - " variable: 'libraries_to_link.type'", - " value: 'interface_library'", - " }", - " flag: '%{libraries_to_link.name}'", - " }", - " flag_group {", - " expand_if_equal: {", - " variable: 'libraries_to_link.type'", - " value: 'static_library'", - " }", - " flag: '%{libraries_to_link.name}'", - " }", - " flag_group {", - " expand_if_equal: {", - " variable: 'libraries_to_link.type'", - " value: 'dynamic_library'", - " }", - " flag: '-l%{libraries_to_link.name}'", - " }", - " flag_group {", - " expand_if_equal: {", - " variable: 'libraries_to_link.type'", - " value: 'versioned_dynamic_library'", - " }", - " flag: '-l:%{libraries_to_link.name}'", - " }", - " flag_group {", - " expand_if_true: 'libraries_to_link.is_whole_archive'", - " flag: '-Wl,-no-whole-archive'", - " }"), + " flag_group {", + " expand_if_true: 'libraries_to_link.is_whole_archive'", + " flag: '-Wl,-whole-archive'", + " }", + " flag_group {", + " expand_if_equal: {", + " variable: 'libraries_to_link.type'", + " value: 'object_file_group'", + " }", + " iterate_over: 'libraries_to_link.object_files'", + " flag: '%{libraries_to_link.object_files}'", + " }", + " flag_group {", + " expand_if_equal: {", + " variable: 'libraries_to_link.type'", + " value: 'object_file'", + " }", + " flag: '%{libraries_to_link.name}'", + " }", + " flag_group {", + " expand_if_equal: {", + " variable: 'libraries_to_link.type'", + " value: 'interface_library'", + " }", + " flag: '%{libraries_to_link.name}'", + " }", + " flag_group {", + " expand_if_equal: {", + " variable: 'libraries_to_link.type'", + " value: 'static_library'", + " }", + " flag: '%{libraries_to_link.name}'", + " }", + " flag_group {", + " expand_if_equal: {", + " variable: 'libraries_to_link.type'", + " value: 'dynamic_library'", + " }", + " flag: '-l%{libraries_to_link.name}'", + " }", + " flag_group {", + " expand_if_equal: {", + " variable: 'libraries_to_link.type'", + " value: 'versioned_dynamic_library'", + " }", + " flag: '-l:%{libraries_to_link.name}'", + " }", + " flag_group {", + " expand_if_true: 'libraries_to_link.is_whole_archive'", + " flag: '-Wl,-no-whole-archive'", + " }"), ifMac( platform, - " flag_group {", - " expand_if_equal: {", - " variable: 'libraries_to_link.type'", - " value: 'object_file_group'", - " }", - " iterate_over: 'libraries_to_link.object_files'", - " flag_group {", - " expand_if_false: 'libraries_to_link.is_whole_archive'", - " flag: '%{libraries_to_link.object_files}'", - " }", - " flag_group {", - " expand_if_true: 'libraries_to_link.is_whole_archive'", - " flag: '-Wl,-force_load,%{libraries_to_link.object_files}'", - " }", - " }", - " flag_group {", - " expand_if_equal: {", - " variable: 'libraries_to_link.type'", - " value: 'object_file'", - " }", - " flag_group {", - " expand_if_false: 'libraries_to_link.is_whole_archive'", - " flag: '%{libraries_to_link.name}'", - " }", - " flag_group {", - " expand_if_true: 'libraries_to_link.is_whole_archive'", - " flag: '-Wl,-force_load,%{libraries_to_link.name}'", - " }", - " }", - " flag_group {", - " expand_if_equal: {", - " variable: 'libraries_to_link.type'", - " value: 'interface_library'", - " }", - " flag_group {", - " expand_if_false: 'libraries_to_link.is_whole_archive'", - " flag: '%{libraries_to_link.name}'", - " }", - " flag_group {", - " expand_if_true: 'libraries_to_link.is_whole_archive'", - " flag: '-Wl,-force_load,%{libraries_to_link.name}'", - " }", - " }", - " flag_group {", - " expand_if_equal: {", - " variable: 'libraries_to_link.type'", - " value: 'static_library'", - " }", - " flag_group {", - " expand_if_false: 'libraries_to_link.is_whole_archive'", - " flag: '%{libraries_to_link.name}'", - " }", - " flag_group {", - " expand_if_true: 'libraries_to_link.is_whole_archive'", - " flag: '-Wl,-force_load,%{libraries_to_link.name}'", - " }", - " }", - " flag_group {", - " expand_if_equal: {", - " variable: 'libraries_to_link.type'", - " value: 'dynamic_library'", - " }", - " flag: '-l%{libraries_to_link.name}'", - " }", - " flag_group {", - " expand_if_equal: {", - " variable: 'libraries_to_link.type'", - " value: 'versioned_dynamic_library'", - " }", - " flag: '-l:%{libraries_to_link.name}'", - " }"), - " flag_group {", - " expand_if_equal: {", - " variable: 'libraries_to_link.type'", - " value: 'object_file_group'", - " }", - " flag: '-Wl,--end-lib'", - " }", - " }", - " flag_group {", - " expand_if_true: 'thinlto_param_file'", - " flag: '-Wl,@%{thinlto_param_file}'", - " }", - " }", + " flag_group {", + " expand_if_equal: {", + " variable: 'libraries_to_link.type'", + " value: 'object_file_group'", + " }", + " iterate_over: 'libraries_to_link.object_files'", + " flag_group {", + " expand_if_false: 'libraries_to_link.is_whole_archive'", + " flag: '%{libraries_to_link.object_files}'", + " }", + " flag_group {", + " expand_if_true: 'libraries_to_link.is_whole_archive'", + " flag: '-Wl,-force_load,%{libraries_to_link.object_files}'", + " }", + " }", + " flag_group {", + " expand_if_equal: {", + " variable: 'libraries_to_link.type'", + " value: 'object_file'", + " }", + " flag_group {", + " expand_if_false: 'libraries_to_link.is_whole_archive'", + " flag: '%{libraries_to_link.name}'", + " }", + " flag_group {", + " expand_if_true: 'libraries_to_link.is_whole_archive'", + " flag: '-Wl,-force_load,%{libraries_to_link.name}'", + " }", + " }", + " flag_group {", + " expand_if_equal: {", + " variable: 'libraries_to_link.type'", + " value: 'interface_library'", + " }", + " flag_group {", + " expand_if_false: 'libraries_to_link.is_whole_archive'", + " flag: '%{libraries_to_link.name}'", + " }", + " flag_group {", + " expand_if_true: 'libraries_to_link.is_whole_archive'", + " flag: '-Wl,-force_load,%{libraries_to_link.name}'", + " }", + " }", + " flag_group {", + " expand_if_equal: {", + " variable: 'libraries_to_link.type'", + " value: 'static_library'", + " }", + " flag_group {", + " expand_if_false: 'libraries_to_link.is_whole_archive'", + " flag: '%{libraries_to_link.name}'", + " }", + " flag_group {", + " expand_if_true: 'libraries_to_link.is_whole_archive'", + " flag: '-Wl,-force_load,%{libraries_to_link.name}'", + " }", + " }", + " flag_group {", + " expand_if_equal: {", + " variable: 'libraries_to_link.type'", + " value: 'dynamic_library'", + " }", + " flag: '-l%{libraries_to_link.name}'", + " }", + " flag_group {", + " expand_if_equal: {", + " variable: 'libraries_to_link.type'", + " value: 'versioned_dynamic_library'", + " }", + " flag: '-l:%{libraries_to_link.name}'", + " }"), + " flag_group {", + " expand_if_equal: {", + " variable: 'libraries_to_link.type'", + " value: 'object_file_group'", + " }", + " flag: '-Wl,--end-lib'", + " }", + " }", + " flag_group {", + " expand_if_true: 'thinlto_param_file'", + " flag: '-Wl,@%{thinlto_param_file}'", + " }", + " }", "}", "feature {", - " name: 'force_pic_flags'", - " flag_set {", - " expand_if_all_available: 'force_pic'", - " action: 'c++-link-executable'", - " flag_group {", - " flag: '-pie'", - " }", - " }", + " name: 'force_pic_flags'", + " flag_set {", + " expand_if_all_available: 'force_pic'", + " action: 'c++-link-executable'", + " flag_group {", + " flag: '-pie'", + " }", + " }", "}", "feature {", - " name: 'legacy_link_flags'", - " flag_set {", - " expand_if_all_available: 'legacy_link_flags'", - " action: 'c++-link-executable'", - " action: 'c++-link-dynamic-library'", - " flag_group {", - " iterate_over: 'legacy_link_flags'", - " flag: '%{legacy_link_flags}'", - " }", - " }", + " name: 'legacy_link_flags'", + " flag_set {", + " expand_if_all_available: 'legacy_link_flags'", + " action: 'c++-link-executable'", + " action: 'c++-link-dynamic-library'", + " flag_group {", + " iterate_over: 'legacy_link_flags'", + " flag: '%{legacy_link_flags}'", + " }", + " }", "}", "feature {", - " name: 'fission_support'", - " flag_set {", - " action: 'c++-link-executable'", - " action: 'c++-link-dynamic-library'", - " action: 'c++-link-interface-dynamic-library'", - " flag_group {", - " expand_if_all_available: 'is_using_fission'", - " flag: '-Wl,--gdb-index'", - " }", - " }", + " name: 'fission_support'", + " flag_set {", + " action: 'c++-link-executable'", + " action: 'c++-link-dynamic-library'", + " action: 'c++-link-interface-dynamic-library'", + " flag_group {", + " expand_if_all_available: 'is_using_fission'", + " flag: '-Wl,--gdb-index'", + " }", + " }", "}", "feature {", - " name: 'strip_debug_symbols'", - " flag_set {", - " action: 'c++-link-executable'", - " action: 'c++-link-dynamic-library'", - " action: 'c++-link-interface-dynamic-library'", - " flag_group {", - " expand_if_all_available: 'strip_debug_symbols'", - " flag: '-Wl,-S'", - " }", - " }", + " name: 'strip_debug_symbols'", + " flag_set {", + " action: 'c++-link-executable'", + " action: 'c++-link-dynamic-library'", + " action: 'c++-link-interface-dynamic-library'", + " flag_group {", + " expand_if_all_available: 'strip_debug_symbols'", + " flag: '-Wl,-S'", + " }", + " }", "}", "feature {", - " name: 'linker_param_file'", - " flag_set {", - " expand_if_all_available: 'linker_param_file'", - " action: 'c++-link-executable'", - " action: 'c++-link-dynamic-library'", - " flag_group {", - " flag: '-Wl,@%{linker_param_file}'", - " }", - " }", - " flag_set {", - " expand_if_all_available: 'linker_param_file'", - " action: 'c++-link-static-library'", - " action: 'c++-link-alwayslink-static-library'", - " action: 'c++-link-pic-static-library'", - " action: 'c++-link-alwayslink-pic-static-library'", - " flag_group {", - " flag: '@%{linker_param_file}'", - " }", - " }", + " name: 'linker_param_file'", + " flag_set {", + " expand_if_all_available: 'linker_param_file'", + " action: 'c++-link-executable'", + " action: 'c++-link-dynamic-library'", + " flag_group {", + " flag: '-Wl,@%{linker_param_file}'", + " }", + " }", + " flag_set {", + " expand_if_all_available: 'linker_param_file'", + " action: 'c++-link-static-library'", + " action: 'c++-link-alwayslink-static-library'", + " action: 'c++-link-pic-static-library'", + " action: 'c++-link-alwayslink-pic-static-library'", + " flag_group {", + " flag: '@%{linker_param_file}'", + " }", + " }", "}")); } |