Skip to content

Commit

Permalink
Revert "Revert "Revert "[compiler-rt] Allow building builtins.a witho…
Browse files Browse the repository at this point in the history
…ut a libc (#86737)"""

This reverts commit d2b63ed. CI again.
Leading theory is bad interaction between cmake and buildbot, some guesses at PR86737
  • Loading branch information
JonChesterfield committed Mar 31, 2024
1 parent a0c019a commit ca68a14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler-rt/cmake/config-ix.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit ca68a14

Please sign in to comment.