diff --git a/toolchain/cc_toolchain_config.bzl b/toolchain/cc_toolchain_config.bzl index 7bb55f35..013a59d1 100644 --- a/toolchain/cc_toolchain_config.bzl +++ b/toolchain/cc_toolchain_config.bzl @@ -268,6 +268,15 @@ def cc_toolchain_config( "-l:c++.a", "-l:c++abi.a", ]) + elif stdlib == "dynamic-stdc++": + cxx_flags = [ + "-std=" + cxx_standard, + "-stdlib=libstdc++", + ] + + link_flags.extend([ + "-lstdc++", + ]) elif stdlib == "stdc++": cxx_flags = [ "-std=" + cxx_standard,