unicorn/cmake/zig.cmake
Matheus C. França 4fb4b3e4b0 Zig binding
* zig binding - sample added
* zig build CI
* split mingw (shared/static) CI/CD
* unicorn log added
* build C/C++ samples
2023-08-04 11:24:00 -03:00

10 lines
271 B
CMake

set(CMAKE_CROSSCOMPILING TRUE)
# set the compiler
if(WIN32)
SET(ZIG_CC ${CMAKE_SOURCE_DIR}/bindings/zig/tools/zigcc.cmd)
else()
SET(ZIG_CC ${CMAKE_SOURCE_DIR}/bindings/zig/tools/zigcc.sh)
endif()
SET(CMAKE_C_COMPILER_ID ${ZIG_CC})
SET(CMAKE_C_COMPILER ${ZIG_CC})