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
302
302
add_dependencies (crt1 sysroot-headers )
303
303
304
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> )
305
+ COMMAND ${CMAKE_COMMAND} -E copy_if_different $< TARGET_OBJECTS:crt1> ${CMAKE_BINARY_DIR} /sysroot/lib/crt1.o )
307
306
add_custom_target (crt1.o ALL
308
307
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 )
309
311
310
312
311
313
add_library (c-printscan-no-floating-point
You can’t perform that action at this time.
0 commit comments