| ... | ... | @@ -411,7 +411,7 @@ find_package(Threads) |
| 411 | 411 | set(ZIG_MAIN_SRC "${CMAKE_SOURCE_DIR}/src/main.cpp") |
| 412 | 412 | |
| 413 | 413 | # This is our shim which will be replaced by libuserland written in Zig. |
| 414 | | set(ZIG1_SHIM_SRC "${CMAKE_SOURCE_DIR}/src/userland.cpp") |
| 414 | set(ZIG0_SHIM_SRC "${CMAKE_SOURCE_DIR}/src/userland.cpp") |
| 415 | 415 | |
| 416 | 416 | set(ZIG_SOURCES |
| 417 | 417 | "${CMAKE_SOURCE_DIR}/src/analyze.cpp" |
| ... | ... | @@ -6677,12 +6677,12 @@ if(MSVC OR MINGW) |
| 6677 | 6677 | target_link_libraries(compiler LINK_PUBLIC version) |
| 6678 | 6678 | endif() |
| 6679 | 6679 | |
| 6680 | | add_executable(zig1 "${ZIG_MAIN_SRC}" "${ZIG1_SHIM_SRC}") |
| 6681 | | set_target_properties(zig1 PROPERTIES |
| 6680 | add_executable(zig0 "${ZIG_MAIN_SRC}" "${ZIG0_SHIM_SRC}") |
| 6681 | set_target_properties(zig0 PROPERTIES |
| 6682 | 6682 | COMPILE_FLAGS ${EXE_CFLAGS} |
| 6683 | 6683 | LINK_FLAGS ${EXE_LDFLAGS} |
| 6684 | 6684 | ) |
| 6685 | | target_link_libraries(zig1 compiler) |
| 6685 | target_link_libraries(zig0 compiler) |
| 6686 | 6686 | |
| 6687 | 6687 | if(WIN32) |
| 6688 | 6688 | set(LIBUSERLAND "${CMAKE_BINARY_DIR}/userland.lib") |
| ... | ... | @@ -6693,7 +6693,7 @@ else() |
| 6693 | 6693 | endif() |
| 6694 | 6694 | add_custom_command( |
| 6695 | 6695 | OUTPUT "${LIBUSERLAND}" |
| 6696 | | COMMAND zig1 ARGS build |
| 6696 | COMMAND zig0 ARGS build |
| 6697 | 6697 | --override-std-dir std |
| 6698 | 6698 | --override-lib-dir "${CMAKE_SOURCE_DIR}" |
| 6699 | 6699 | libuserland |