Skip to content

Commit

Permalink
README.md: minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Time0o committed Dec 27, 2021
1 parent 0c1a7d3 commit c9f407d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ int main()
run `clang++ -Xclang -load -Xclang $FIRE_LLVM_PLUGIN -Xclang -add-plugin
-Xclang fire -I fire-llvm/include calc.cc -o calc` to create an executable
`calc`. Here, `$FIRE_LLVM_PLUGIN` should expand to the location of the shared
object created when building this plugin [Installation](#installation).
object created when building this plugin (see [Installation](#installation)).
Alternatively, if you're building `calc` with CMake you could use the
`fire_llvm_config` function:

Expand All @@ -58,19 +58,19 @@ For more examples, take a look at the tests in the `tests` directory.
## Installation

To build fire-llvm you will need the LLVM development libraries. I have tested
this with Clang/LLVM version 11 and 12 minor tweaks might be needed for other
this with Clang/LLVM version 11 and 12. Minor tweaks might be needed for other
versions.

To build the plugin, run:

```
mkdir build
cd build
cmake ..
cmake .. -DCMAKE_CXX_COMPILER=clang++
make
```

which will create the plugin under
where `clang++` should have version 11 or 12. This will create the plugin under
`build/fire-llvm/plugin/libfire-llvm-plugin.so`. Due to some CMake wonkiness
the build will likely fail if you try to run several make jobs in parallel with
`-j`.
Expand Down

0 comments on commit c9f407d

Please sign in to comment.