Index: build/config/BUILDCONFIG.gn |
diff --git a/build/config/BUILDCONFIG.gn b/build/config/BUILDCONFIG.gn |
index 643ded82c1df0be7004de9af7c23856a2b80bbe2..65599a2d95863fe5005e8fe33ed9ca2fe8fc5c48 100644 |
--- a/build/config/BUILDCONFIG.gn |
+++ b/build/config/BUILDCONFIG.gn |
@@ -431,7 +431,8 @@ set_defaults("static_library") { |
configs = _native_compiler_configs |
} |
-# Shared library defaults (also for components in component mode). |
+# Shared library and loadable module defaults (also for components in component |
+# mode). |
_shared_library_configs = |
_native_compiler_configs + [ "//build/config:default_libs" ] |
if (is_win) { |
@@ -447,6 +448,9 @@ if (is_win) { |
set_defaults("shared_library") { |
configs = _shared_library_configs |
} |
+set_defaults("loadable_module") { |
+ configs = _shared_library_configs |
+} |
if (is_component_build) { |
set_defaults("component") { |
configs = _shared_library_configs |