Index: build/toolchain/gcc_toolchain.gni |
diff --git a/build/toolchain/gcc_toolchain.gni b/build/toolchain/gcc_toolchain.gni |
index ec138b1781858bb553bf2cc638da5d09df8fb2cb..99c0c70bd4b5de474e99658e583c12781513099c 100644 |
--- a/build/toolchain/gcc_toolchain.gni |
+++ b/build/toolchain/gcc_toolchain.gni |
@@ -322,7 +322,11 @@ template("gcc_toolchain") { |
# Use this for {{output_extension}} expansions unless a target manually |
# overrides it (in which case {{output_extension}} will be what the target |
# specifies). |
- default_output_extension = default_shlib_extension |
+ if (defined(invoker.loadable_module_extension)) { |
+ default_output_extension = invoker.loadable_module_extension |
+ } else { |
+ default_output_extension = default_shlib_extension |
+ } |
output_prefix = "lib" |