Skip to content

Commit

Permalink
Support order file instrumentation in swift compile actions
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 467339063
(cherry picked from commit 2a1a387)
Signed-off-by: Brentley Jones <github@brentleyjones.com>
  • Loading branch information
googlewalt authored and brentleyjones committed Jun 21, 2024
1 parent d55d232 commit f2e8ba2
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions swift/toolchains/config/compile_config.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -595,6 +595,19 @@ def compile_action_configs(
),
]

#### FDO flags
action_configs.append(
# Support for order-file instrumentation.
ActionConfigInfo(
actions = [SWIFT_ACTION_COMPILE],
configurators = [
add_arg("-sanitize=undefined"),
add_arg("-sanitize-coverage=func"),
],
features = ["fdo_instrument_order_file"],
),
)

#### Flags controlling how Swift/Clang modular inputs are processed

action_configs += [
Expand Down

0 comments on commit f2e8ba2

Please sign in to comment.