forked from oleg-it-com/walkgeek
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcmake_patch_linaro.diff
28 lines (28 loc) · 959 Bytes
/
cmake_patch_linaro.diff
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
--- CMakeTestCXXCompiler.cmake.new 2013-05-05 16:07:18.369718547 +0600
+++ CMakeTestCXXCompiler.cmake 2013-05-05 16:03:26.000000000 +0600
@@ -25,6 +25,11 @@
"#ifndef __cplusplus\n"
"# error \"The CMAKE_CXX_COMPILER is set to a C compiler\"\n"
"#endif\n"
+ "void _exit(int rc)\n"
+ "{\n"
+ " while(1)\n"
+ " ;\n"
+ "}\n"
"int main(){return 0;}\n")
TRY_COMPILE(CMAKE_CXX_COMPILER_WORKS ${CMAKE_BINARY_DIR}
${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp/testCXXCompiler.cxx
--- CMakeTestCCompiler.cmake.new 2013-05-05 16:07:15.149702656 +0600
+++ CMakeTestCCompiler.cmake 2013-05-05 16:03:10.000000000 +0600
@@ -25,6 +25,11 @@
"#ifdef __cplusplus\n"
"# error \"The CMAKE_C_COMPILER is set to a C++ compiler\"\n"
"#endif\n"
+ "void _exit(int rc)\n"
+ "{\n"
+ " while(1)\n"
+ " ;\n"
+ "}\n"
"#if defined(__CLASSIC_C__)\n"
"int main(argc, argv)\n"
" int argc;\n"