Skip to content

Commit ed21728

Browse files
authored
Merge pull request #64286 from apple/m_borsa_enable_driver_asan_build
Add --enable-asan option in swift-driver
2 parents c1134a7 + 3c48261 commit ed21728

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

utils/swift_build_support/swift_build_support/products/earlyswiftdriver.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,10 @@ def run_build_script_helper(action, host_target, product, args):
152152
helper_cmd += [
153153
'--lit-test-dir', lit_test_dir
154154
]
155+
156+
if args.enable_asan:
157+
helper_cmd.append('--enable-asan')
158+
155159
if args.verbose_build:
156160
helper_cmd.append('--verbose')
157161

utils/swift_build_support/swift_build_support/products/swiftdriver.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,10 @@ def run_build_script_helper(action, host_target, product, args):
142142
host_target).platform.swiftpm_config(
143143
args, output_dir=build_toolchain_path,
144144
swift_toolchain=toolchain_path, resource_path=resource_dir)]
145+
146+
if args.enable_asan:
147+
helper_cmd.append('--enable-asan')
148+
145149
if args.verbose_build:
146150
helper_cmd.append('--verbose')
147151

0 commit comments

Comments
 (0)