79106111

Date: 2024-10-19 23:13:05
Score: 0.5
Natty:
Report link

Getting Swift to compile locally is so challenging,

from my experience, you need to have the following in your CMake options:

cmark-gfm_DIR=/Users/mostafa.essam/swift-project/build/Ninja-RelWithDebInfoAssert/cmark-macosx-arm64/cmake/modules/

-Dcmark-gfm_DIR:PATH=/Users/mostafa.essam/swift-project/build/Ninja-RelWithDebInfoAssert/cmark-macosx-arm64/cmake/modules/

-DCMAKE_PREFIX_PATH=/Users/mostafa.essam/swift-project/build/Ninja-RelWithDebInfoAssert/llvm-macosx-arm64/lib/cmake/llvm

-DLLVM_DIR=/Users/mostafa.essam/swift-project/build/Ninja-RelWithDebInfoAssert/llvm-macosx-arm64/lib/cmake/llvm/

-DClang_DIR=/Users/mostafa.essam/swift-project/build/Ninja-RelWithDebInfoAssert/llvm-macosx-arm64/lib/cmake/clang

-DSWIFT_PATH_TO_CMARK_BUILD=/Users/mostafa.essam/swift-project/build/Ninja-RelWithDebInfoAssert/cmark-macosx-arm64

for reference, this's how it looks when configured using CLion:

enter image description here

Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Mostfa Essam