Skip to content

Commit 0ee972f

Browse files
committed
build: enable building Numerics on Darwin with CMake
The `-enable-force-autolink` flag is not supported on Darwin. Fortunately, it is also unnecessary to work around the SR on Darwin. Simply exclude the flag when targeting Darwin.
1 parent 6b24333 commit 0ee972f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Numerics/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ set_target_properties(Numerics PROPERTIES
1414
# NOTE: generate the force load symbol to ensure that the import library is
1515
# generated on Windows for autolinking.
1616
target_compile_options(Numerics PUBLIC
17-
-autolink-force-load
17+
$<$<NOT:$<PLATFORM_ID:Darwin>>:-autolink-force-load>
1818
# SR-12254: workaround for the swift compiler not properly tracking the force
1919
# load symbol when validating the TBD
2020
-Xfrontend -validate-tbd-against-ir=none)

0 commit comments

Comments
 (0)