C: Difference between revisions
No edit summary |
m →Use a clang compiled from source: fix indentation |
||
| Line 368: | Line 368: | ||
<syntaxHighlight lang=console> | <syntaxHighlight lang=console> | ||
$ | $ git clone https://github.com/llvm/llvm-project | ||
$ cd llvm-project | $ cd llvm-project | ||
$ nix-shell -p cmake --command 'mkdir build && cd build && cmake -DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra" -DCMAKE_INSTALL_PREFIX=../install -DCMAKE_BUILD_TYPE=Debug ../llvm && make -j$(nproc)' | $ nix-shell -p cmake --command 'mkdir build && cd build && cmake -DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra" -DCMAKE_INSTALL_PREFIX=../install -DCMAKE_BUILD_TYPE=Debug ../llvm && make -j$(nproc)' | ||
| Line 399: | Line 399: | ||
<syntaxHighlight lang=nix> | <syntaxHighlight lang=nix> | ||
with import <nixpkgs> {}; | |||
pkgs.mkShell { | |||
nativeBuildInputs = [ | |||
cmake | |||
(callPackage ./impure-clang.nix {}) | |||
]; | |||
} | |||
</syntaxHighlight> | </syntaxHighlight> | ||