AdeptLanguage / Adept

The Adept Programming Language
GNU General Public License v3.0
122 stars 9 forks source link

Update CMakeLists.txt #329

Closed ghost closed 8 months ago

ghost commented 8 months ago

Fix link LLVM statically on MSYS2. By default, it will link LLVM dynamically. But we can force it to link LLVM statically with:

cmake -DCMAKE_BUILD_TYPE=Release -DADEPT_LINK_LLVM_STATIC=ON

I normally link LLVM dynamically. Today I tested linking LLVM statically and found the problem.

IsaacShelton commented 8 months ago

Somehow it was missing winsock2 looks like

Nice catch :+1: