Skip to content
This repository was archived by the owner on Jul 1, 2023. It is now read-only.

Commit f0748c4

Browse files
authored
build: adjust flags for inlining and partial specializations (#627)
This replicates some of the flags from the tensorflow branch of apple/swift into the repository. These control optimizations that we would like to always enable.
1 parent 9a62638 commit f0748c4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,7 @@ set(CMAKE_Swift_MODULE_DIRECTORY ${CMAKE_BINARY_DIR}/swift)
88

99
find_package(TensorFlow REQUIRED)
1010

11+
add_compile_options($<$<COMPILE_LANGUAGE:Swift>:-Xllvm$<SEMICOLON>-sil-inline-generics>)
12+
add_compile_options($<$<COMPILE_LANGUAGE:Swift>:-Xllvm$<SEMICOLON>-sil-partial-specialization>)
13+
1114
add_subdirectory(Sources)

0 commit comments

Comments
 (0)