How to build clang and swift‐frontend (on Mac M2)
$ git clone https://github.com/codetronik/CodeLabyrinth
$ cd CodeLabyrinth
$ cmake -B Release -DLLVM_DIR=/SWIFT_CLONE_PATH/build/buildbot_osx/llvm-macosx-arm64/lib/cmake -DCMAKE_OSX_ARCHITECTURES=arm64
$ cd Release
$ make -j16
Project Setting -> Apple Clang -> Custom Compiler Flags -> Other C Flags -> Release
-fpass-plugin=/libCodeLabyrinth.dylib -DCMAKE_OSX_ARCHITECTURES=arm64
How to compile LLVM Pass for Android using Visual Studio
$ git clone https://github.com/codetronik/CodeLabyrinth
$ notepad.exe CodeLabyrinth\windows\Directory.build.props
Modify LLVMINstallDir
then open CodeLabyrinth.sln
and build.
Project Setting -> Configuration Properties -> C/C++ -> Command Line -> Additional Options
-fpass-plugin=\CodeLabyrinth.dll
- iOS : C++, Objective C++ / Xcode 15.0.1 / iPhone 12 mini
- Android : C++ / Visual Studio 2022 / Galaxy Note S20
- Windows : C++ with Command Line