Skip to content

Commit 99f99df

Browse files
authored
Fixes #146 (#211)
* Fixes #146
1 parent f75a02d commit 99f99df

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ios.toolchain.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,8 @@
156156
cmake_minimum_required(VERSION 3.8.0)
157157

158158
# CMake invokes the toolchain file twice during the first build, but only once during subsequent rebuilds.
159-
if(DEFINED ENV{_IOS_TOOLCHAIN_HAS_RUN})
159+
# NOTE: To improve single-library build-times, provide the flag "OS_SINGLE_BUILD" as a build argument.
160+
if(DEFINED OS_SINGLE_BUILD AND DEFINED ENV{_IOS_TOOLCHAIN_HAS_RUN})
160161
return()
161162
endif()
162163
set(ENV{_IOS_TOOLCHAIN_HAS_RUN} true)

0 commit comments

Comments
 (0)