From 0e01344174488bb4380af5d8dbe35e7107484d12 Mon Sep 17 00:00:00 2001 From: Eric Miotto <1094986+edymtt@users.noreply.github.com> Date: Wed, 8 Dec 2021 07:16:59 -0800 Subject: [PATCH] Add explanatory comments around freestanding test configuration Tackles feedback of the review of #40202 --- test/lit.cfg | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/lit.cfg b/test/lit.cfg index e2fe0003b32c3..4947bee839c40 100644 --- a/test/lit.cfg +++ b/test/lit.cfg @@ -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' @@ -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