From c628efdb28265b26527ee041292b8f203f666de4 Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Wed, 15 Jan 2020 10:30:20 -0800 Subject: [PATCH] build: adjust flags for inlining and partial specializations 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. --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 45fa4ffe2..950e73c84 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,4 +8,7 @@ set(CMAKE_Swift_MODULE_DIRECTORY ${CMAKE_BINARY_DIR}/swift) find_package(TensorFlow REQUIRED) +add_compile_options($<$:-Xllvm$-sil-inline-generics>) +add_compile_options($<$:-Xllvm$-sil-partial-specialization>) + add_subdirectory(Sources)