diff --git a/swift/internal/compiling.bzl b/swift/internal/compiling.bzl index 30882a335..c00318742 100644 --- a/swift/internal/compiling.bzl +++ b/swift/internal/compiling.bzl @@ -151,6 +151,17 @@ def compile_action_configs( ], ), + # Don't embed Clang module breadcrumbs in debug info. + swift_toolchain_config.action_config( + actions = [swift_action_names.COMPILE], + configurators = [ + swift_toolchain_config.add_arg( + "-Xfrontend", + "-no-clang-module-breadcrumbs", + ), + ], + ), + # Add the output precompiled module file path to the command line. swift_toolchain_config.action_config( actions = [swift_action_names.PRECOMPILE_C_MODULE],