File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -235,9 +235,9 @@ set(COMPILER_RT_SUPPORTED_ARCH)
235
235
# Try to compile a very simple source file to ensure we can target the given
236
236
# platform. We use the results of these tests to build only the various target
237
237
# runtime libraries supported by our current compilers cross-compiling
238
- # abilities.
238
+ # abilities. Avoids using libc as that may not be available yet.
239
239
set (SIMPLE_SOURCE ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY} /simple.cc )
240
- file (WRITE ${SIMPLE_SOURCE} "#include <stdlib.h> \n #include <stdio.h> \n int main(void) { printf( \" hello, world \" ) ; }\n " )
240
+ file (WRITE ${SIMPLE_SOURCE} "int main(void) { return 0 ; }\n " )
241
241
242
242
# Detect whether the current target platform is 32-bit or 64-bit, and setup
243
243
# the correct commandline flags needed to attempt to target 32-bit and 64-bit.
You can’t perform that action at this time.
0 commit comments