cmake: output better message when building self-hosted

Thanks @bfredl!
master
Andrew Kelley 2020-09-21 16:32:56 -07:00
parent 561ed38f12
commit bd1465a3fe
1 changed files with 2 additions and 0 deletions

View File

@ -463,6 +463,7 @@ if("${ZIG_TARGET_TRIPLE}" STREQUAL "native")
COMMAND zig0 ${BUILD_ZIG1_ARGS}
DEPENDS zig0
BYPRODUCTS "${ZIG1_OBJECT}"
COMMENT STATUS "Building self-hosted component ${ZIG1_OBJECT}"
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
)
set(ZIG_EXECUTABLE "${zig_BINARY_DIR}/zig")
@ -473,6 +474,7 @@ else()
add_custom_target(zig_build_zig1 ALL
COMMAND "${ZIG_EXECUTABLE}" ${BUILD_ZIG1_ARGS}
BYPRODUCTS "${ZIG1_OBJECT}"
COMMENT STATUS "Building self-hosted component ${ZIG1_OBJECT}"
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
)
endif()