forked from swiftlang/swift-corelibs-libdispatch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNEMIK_CMAKE
13 lines (10 loc) · 1.48 KB
/
NEMIK_CMAKE
1
2
3
4
5
6
7
8
9
10
11
12
13
#WORKING
#/code/tmp/latch/dispatch/cmake-3.16.3-Linux-x86_64/bin/cmake -G Ninja -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ .
#ninja
# from https://llvm.org/docs/HowToCrossCompileLLVM.html
#/code/tmp/latch/dispatch/cmake-3.16.3-Linux-x86_64/bin/cmake -G Ninja -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_CROSSCOMPILING=True -DCMAKE_INSTALL_PREFIX=<install-dir> -DLLVM_TABLEGEN=<path-to-host-bin>/llvm-tblgen -DCLANG_TABLEGEN=<path-to-host-bin>/clang-tblgen -DLLVM_DEFAULT_TARGET_TRIPLE=arm-linux-gnueabihf -DLLVM_TARGET_ARCH=ARM -DLLVM_TARGETS_TO_BUILD=ARM .
# this one says Manually-specified variables were not used by the project and includes -DLLVM_TARGET_ARCH=ARM
# /code/tmp/latch/dispatch/cmake-3.16.3-Linux-x86_64/bin/cmake -G Ninja -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_CROSSCOMPILING=True -DCMAKE_INSTALL_PREFIX=arm -DLLVM_TABLEGEN=/usr/bin/llvm-tblgen-6.0 -DCLANG_TABLEGEN=/usr/bin/clang-tblgen-3.9 -DLLVM_DEFAULT_TARGET_TRIPLE=arm-linux-gnueabihf -DLLVM_TARGET_ARCH=ARM -DLLVM_TARGETS_TO_BUILD=ARM .
#ninja
#
CC='clang' CXX='clang++' /code/tmp/latch/dispatch/cmake-3.16.3-Linux-x86_64/bin/cmake -G Ninja /code/tmp/latch/dispatch/swift-corelibs-libdispatch -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_CROSSCOMPILING=True -DCMAKE_INSTALL_PREFIX=arm -DLLVM_TABLEGEN=/usr/bin/llvm-tblgen-6.0 -DCLANG_TABLEGEN=/usr/bin/clang-tblgen-3.9 -DLLVM_DEFAULT_TARGET_TRIPLE=arm-linux-gnueabihf -DLLVM_TARGET_ARCH=ARM -DLLVM_TARGETS_TO_BUILD=ARM