Environment Setup
Development
Checkout with git clone git@github.com:DrewCarlson/ktpack.git --recurse-submodules
(ensure submodules are initialized and updated!! If unsure, run git submodule update --init)
For Linux and macOS, there should be no extra steps.
Windows
- Install msys2
- Add
C:\msys64\mingw64\binto the top of yourPATHvariable (restart intellij) - Open
MSYS2 MinGW 64-bitand runmv /mingw64/bin/gcc /mingw64/bin/gcc-disable - Run the
ktpack[windowsX64]target from Intellij
Compiling native components with Gradle is generally unpleasant and difficult to control. Gradle does not allow manual selection of the C/C++ compiler and defaults to Visual Studio or GCC if available. This results in library outputs that Kotlin/Native's toolchain cannot process, therefore we must disable GCC/Visual Studio so Clang is selected.