Skip to content

Commit 24507dc

Browse files
committed
[embedded] Concurrency/CMakeLists.txt: Use -isystem instead of -I for SDK search paths
1 parent 08c8b41 commit 24507dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/Concurrency/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ if(SWIFT_SHOULD_BUILD_EMBEDDED_STDLIB AND SWIFT_SHOULD_BUILD_EMBEDDED_CONCURRENC
287287
if(NOT "${mod}" MATCHES "-apple-" OR "${mod}" MATCHES "-none-macho")
288288
# Host is macOS with a macOS SDK. To be able to build the C++ Concurrency runtime for non-Darwin targets using the macOS SDK,
289289
# we need to pass some extra flags and search paths.
290-
set(extra_c_compile_flags -stdlib=libc++ -I${SWIFT_SDK_OSX_PATH}/usr/include/c++/v1 -I${SWIFT_SDK_OSX_PATH}/usr/include -D__APPLE__)
290+
set(extra_c_compile_flags -stdlib=libc++ -isystem${SWIFT_SDK_OSX_PATH}/usr/include/c++/v1 -isystem${SWIFT_SDK_OSX_PATH}/usr/include -D__APPLE__)
291291
endif()
292292
endif()
293293

0 commit comments

Comments
 (0)