Skip to content

Commit c1302f2

Browse files
committed
fixup! 323e0b3
1 parent 09d9899 commit c1302f2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

CMakeLists.txt

+4-2
Original file line numberDiff line numberDiff line change
@@ -302,10 +302,12 @@ add_library(crt1 OBJECT
302302
add_dependencies(crt1 sysroot-headers)
303303

304304
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)
307306
add_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

311313
add_library(c-printscan-no-floating-point

0 commit comments

Comments
 (0)