Skip to content

Commit 073a4ca

Browse files
Fix patch for iOS cmake that makes it use full path for clang
Signed-off-by: Alexander Karatarakis <[email protected]>
1 parent 9058bcf commit 073a4ca

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

Build_iOS/fix_ios_cmake_compiler.patch

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
diff --git a/toolchain/iOS.cmake b/toolchain/iOS.cmake
2-
index 076a6b9..2e3291a 100644
2+
index 195e3fc..567a8d3 100644
33
--- a/toolchain/iOS.cmake
44
+++ b/toolchain/iOS.cmake
5-
@@ -47,8 +47,8 @@ endif (CMAKE_UNAME)
5+
@@ -45,10 +45,10 @@ if (CMAKE_UNAME)
6+
string (REGEX REPLACE "^([0-9]+)\\.([0-9]+).*$" "\\1" DARWIN_MAJOR_VERSION "${CMAKE_HOST_SYSTEM_VERSION}")
7+
endif (CMAKE_UNAME)
68

7-
# Force the compilers to gcc for iOS
9+
-# Force the compilers to gcc for iOS
10+
+# Force the compilers to clang for iOS
811
include (CMakeForceCompiler)
9-
-CMAKE_FORCE_C_COMPILER (clang Apple)
10-
-CMAKE_FORCE_CXX_COMPILER (clang++ Apple)
12+
-CMAKE_FORCE_C_COMPILER (/usr/bin/gcc Apple)
13+
-CMAKE_FORCE_CXX_COMPILER (/usr/bin/g++ Apple)
1114
+CMAKE_FORCE_C_COMPILER (/usr/bin/clang Apple)
1215
+CMAKE_FORCE_CXX_COMPILER (/usr/bin/clang++ Apple)
1316
set(CMAKE_AR ar CACHE FILEPATH "" FORCE)

0 commit comments

Comments
 (0)