Index: build/split_static_library.gni |
diff --git a/build/split_static_library.gni b/build/split_static_library.gni |
index bfde703fbab31f0acaf3e1f9a1b2534490da8845..5b7de52947c44971b12e38026b14e25bea753020 100644 |
--- a/build/split_static_library.gni |
+++ b/build/split_static_library.gni |
@@ -36,6 +36,11 @@ template("split_static_library") { |
]) |
sources = current_sources |
visibility = [ ":$group_name" ] |
+ |
+ # Uniquify the output name if one is specified. |
+ if (defined(invoker.output_name)) { |
+ output_name = "${invoker.output_name}_$current_library_index" |
+ } |
} |
current_library_index = current_library_index + 1 |