We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 09d9899 commit c1302f2Copy full SHA for c1302f2
CMakeLists.txt
@@ -302,10 +302,12 @@ add_library(crt1 OBJECT
302
add_dependencies(crt1 sysroot-headers)
303
304
add_custom_command(OUTPUT ${CMAKE_BINARY_DIR}/sysroot/lib/crt1.o
305
- COMMAND ${CMAKE_COMMAND} -E copy_if_different $<TARGET_OBJECTS:crt1> ${CMAKE_BINARY_DIR}/sysroot/lib/crt1.o
306
- DEPENDS $<TARGET_OBJECTS:crt1>)
+ COMMAND ${CMAKE_COMMAND} -E copy_if_different $<TARGET_OBJECTS:crt1> ${CMAKE_BINARY_DIR}/sysroot/lib/crt1.o)
307
add_custom_target(crt1.o ALL
308
DEPENDS ${CMAKE_BINARY_DIR}/sysroot/lib/crt1.o)
+# NOTE(compnerd) this is hacky but the object file extension causes problems
309
+# with using the `DEPENDS` for the `add_custom_command` above.
310
+add_dependencies(crt1.o crt1)
311
312
313
add_library(c-printscan-no-floating-point
0 commit comments