diff options
author | Leandro Lupori <leandro.lupori@linaro.org> | 2024-03-28 09:54:27 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-28 09:54:27 -0300 |
commit | 0f8a3797da1b35c3a5029d4b1ed2e1cb41909f82 (patch) | |
tree | 69a0fe99e8daa65951992bf49883e1cb3388e8b3 | |
parent | e8e80d07c867cadcfd82741693a04b2913904956 (diff) |
Revert "[compiler-rt] Allow building builtins.a without a libc (#86737)"upstream/revert-86737-jc_compiler_bootstrap
This reverts commit 86692258637549ed9f863c3d2ba47b49f61bbc1f.
-rw-r--r-- | compiler-rt/cmake/config-ix.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler-rt/cmake/config-ix.cmake b/compiler-rt/cmake/config-ix.cmake index 911f48fa1381..46a6fdf8728f 100644 --- a/compiler-rt/cmake/config-ix.cmake +++ b/compiler-rt/cmake/config-ix.cmake @@ -235,9 +235,9 @@ set(COMPILER_RT_SUPPORTED_ARCH) # Try to compile a very simple source file to ensure we can target the given # platform. We use the results of these tests to build only the various target # runtime libraries supported by our current compilers cross-compiling -# abilities. Avoids using libc as that may not be available yet. +# abilities. set(SIMPLE_SOURCE ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/simple.cc) -file(WRITE ${SIMPLE_SOURCE} "int main(void) { return 0; }\n") +file(WRITE ${SIMPLE_SOURCE} "#include <stdlib.h>\n#include <stdio.h>\nint main(void) { printf(\"hello, world\"); }\n") # Detect whether the current target platform is 32-bit or 64-bit, and setup # the correct commandline flags needed to attempt to target 32-bit and 64-bit. |