Skip to content

Add explanatory comments around freestanding test configuration #40472

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
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
4 changes: 4 additions & 0 deletions test/lit.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -967,6 +967,8 @@ if run_vendor == 'apple':
if not config.swift_freestanding_is_darwin:
swift_execution_tests_extra_flags += ' -Xlinker -dead_strip'

# TODO: consider making the addition of these flags dependent on the CMake
# setting for hermetic seal at link
if not config.swift_freestanding_is_darwin:
swift_execution_tests_extra_flags += ' -experimental-hermetic-seal-at-link -lto=llvm-full'

Expand All @@ -980,6 +982,8 @@ if run_vendor == 'apple':
symlink_if_not_exists("clang", "clang")
symlink_if_not_exists("shims", "shims")
symlink_if_not_exists("freestanding", "macosx")
# This is needed to allow compiling against Dispatch
# TODO: consider making this dependent on swift_enable_dispatch
if config.swift_freestanding_is_darwin:
symlink_if_not_exists("apinotes", "apinotes")
config.resource_dir_opt = "-resource-dir %s" % new_resource_dir
Expand Down