Merge pull request #139 from compnerd/autolinking

Numerics: make `import Numerics` function on Windows
This commit is contained in:
Stephen Canon authored and GitHub committed 2020-08-05 14:23:52 -04:00
commit 2342ba6314
1 file changed
+7
+7
View File
@@ -11,6 +11,13 @@ add_library(Numerics
Numerics.swift)
set_target_properties(Numerics PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_Swift_MODULE_DIRECTORY})
# NOTE: generate the force load symbol to ensure that the import library is
# generated on Windows for autolinking.
target_compile_options(Numerics PUBLIC
-autolink-force-load
# SR-12254: workaround for the swift compiler not properly tracking the force
# load symbol when validating the TBD
-Xfrontend -validate-tbd-against-ir=none)
target_link_libraries(Numerics PUBLIC
ComplexModule
RealModule)