Skip to content

Commit 492c48e

Browse files
Googlerswiple-rules-gardener
authored andcommitted
Add -Xfrontend -no-clang-module-breadcrumbs when building cacheable swiftmodules.
PiperOrigin-RevId: 424919173
1 parent b1a0fd7 commit 492c48e

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

swift/internal/compiling.bzl

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,20 @@ def compile_action_configs(
156156
configurators = [_output_object_or_file_map_configurator],
157157
),
158158

159+
# Don't embed Clang module breadcrumbs in debug info.
160+
swift_toolchain_config.action_config(
161+
actions = [swift_action_names.COMPILE],
162+
configurators = [
163+
swift_toolchain_config.add_arg(
164+
"-Xfrontend",
165+
"-no-clang-module-breadcrumbs",
166+
),
167+
],
168+
features = [
169+
SWIFT_FEATURE_CACHEABLE_SWIFTMODULES,
170+
],
171+
),
172+
159173
# Emit precompiled Clang modules, and embed all files that were read
160174
# during compilation into the PCM.
161175
swift_toolchain_config.action_config(

0 commit comments

Comments
 (0)