Skip to content

Disable UBSAN on macOS #227

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion Utilities/build-script-helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,13 @@ def main() -> None:
handle_invocation(swift_exec, args)

# Linux ubsan disabled: https://bugs.swift.org/browse/SR-12550
if platform.system() != 'Linux':
#
# ubsan disabled on macOS because building indexstore-db using a new, just-built clang with ubsan enabled but
# with an Xcode 15.1 SDK causes C++ exception to not be catchable with `try {} catch {}` blocks and
# indexstore-db relies on exception catching, possibly related to
# https://stackoverflow.com/questions/51673343/clang-with-libc-exceptions.
# Re-enable when Xcode on CI nodes has been updated to Xcode 16 (rdar://139647872)
if platform.system() != 'Linux' and False:
print('=== %s indexstore-db with ubsan ===' % args.action)
args.sanitize = ['undefined']
args.build_path = os.path.join(base, 'test-ubsan')
Expand Down