File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -302,10 +302,12 @@ add_library(crt1 OBJECT
302302add_dependencies (crt1 sysroot-headers)
303303
304304add_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>)
305+ COMMAND ${CMAKE_COMMAND} -E copy_if_different $<TARGET_OBJECTS:crt1> ${CMAKE_BINARY_DIR} /sysroot/lib/crt1.o)
307306add_custom_target (crt1.o ALL
308307 DEPENDS ${CMAKE_BINARY_DIR} /sysroot/lib/crt1.o)
308+ # 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)
309311
310312
311313add_library (c-printscan-no -floating-point
You can’t perform that action at this time.
0 commit comments