authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-04-17 14:09:18-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-04-17 14:09:18-04:00
log4ad7d09ba5f6f021cb6b6c2045e26fe252f61a27
tree6f21f0d76204fd236e99233714dadbc67def741c
parentbc2d60c11f7e90f401a4412d3dc6fca985071169
signature Commit is signed but in an unrecognized format.

build: rename zig1 to zig0 to avoid confusion with stage1


1 files changed, 5 insertions(+), 5 deletions(-)

CMakeLists.txt+5-5
......@@ -411,7 +411,7 @@ find_package(Threads)
411411set(ZIG_MAIN_SRC "${CMAKE_SOURCE_DIR}/src/main.cpp")
412412
413413# This is our shim which will be replaced by libuserland written in Zig.
414set(ZIG1_SHIM_SRC "${CMAKE_SOURCE_DIR}/src/userland.cpp")
414set(ZIG0_SHIM_SRC "${CMAKE_SOURCE_DIR}/src/userland.cpp")
415415
416416set(ZIG_SOURCES
417417 "${CMAKE_SOURCE_DIR}/src/analyze.cpp"
......@@ -6677,12 +6677,12 @@ if(MSVC OR MINGW)
66776677 target_link_libraries(compiler LINK_PUBLIC version)
66786678endif()
66796679
6680add_executable(zig1 "${ZIG_MAIN_SRC}" "${ZIG1_SHIM_SRC}")
6681set_target_properties(zig1 PROPERTIES
6680add_executable(zig0 "${ZIG_MAIN_SRC}" "${ZIG0_SHIM_SRC}")
6681set_target_properties(zig0 PROPERTIES
66826682 COMPILE_FLAGS ${EXE_CFLAGS}
66836683 LINK_FLAGS ${EXE_LDFLAGS}
66846684)
6685target_link_libraries(zig1 compiler)
6685target_link_libraries(zig0 compiler)
66866686
66876687if(WIN32)
66886688 set(LIBUSERLAND "${CMAKE_BINARY_DIR}/userland.lib")
......@@ -6693,7 +6693,7 @@ else()
66936693endif()
66946694add_custom_command(
66956695 OUTPUT "${LIBUSERLAND}"
6696 COMMAND zig1 ARGS build
6696 COMMAND zig0 ARGS build
66976697 --override-std-dir std
66986698 --override-lib-dir "${CMAKE_SOURCE_DIR}"
66996699 libuserland